/** * Form for the user to read, update and delete a specific Auto Run rule. * * rule: The object definition of this rule from the Auto Run Engine. * deleteFn: callback function to delete this rule. * updateFn: callback function to update this rule. */ AutoRunRuleForm = function(rule, deleteFn, updateFn) { AutoRunRuleForm.superclass.constructor.call(this, { padding:'10 10 10 10', items: [{ xtype: 'textfield', value: rule.name ? rule.name : '', fieldLabel: 'Name', }], buttons: [{ text: 'Delete', handler: deleteFn }, { text: 'Save', handler: updateFn }], border: false, closable: false }); }; Ext.extend(AutoRunRuleForm, Ext.FormPanel, {});