2 "name" : "Pman.Dialog.XtupleTerms",
5 "path" : "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleTerms.bjs",
11 "collapsible" : false,
12 "title" : "Create / Edit Terms",
13 "xtype" : "LayoutDialog",
21 "xtype" : "LayoutRegion",
27 "xtype" : "ContentPanel",
32 "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n if (_this.data.id) { \n this.load({ method: 'GET', params: { _id : _this.data.id}});\n return;\n }\n \n return;\n }\n if (action.type == 'load') {\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n \n _this.form.reset();\n return;\n }\n}\n",
33 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
35 "$ url" : "baseURL + '/Roo/terms.php'",
38 "style" : "margin:10px;",
42 "style" : "width:420px",
48 "fieldLabel" : "First Name",
49 "xtype" : "TextField",
53 "name" : "cntct_first_name"
56 "fieldLabel" : "Last Name",
57 "xtype" : "TextField",
60 "name" : "cntct_last_name"
63 "fieldLabel" : "Phone",
64 "xtype" : "TextField",
65 "$ regex" : "/^[0-9 +-]+$/",
68 "name" : "cntct_phone"
72 "xtype" : "TextField",
73 "$ regex" : "/^[0-9 +-]+$/",
76 "name" : "cntct_phone2"
79 "Boolean allowBlank" : false,
80 "fieldLabel" : "Email",
82 "xtype" : "TextField",
85 "name" : "cntct_email"
88 "fieldLabel" : "Password",
89 "xtype" : "TextField",
90 "String inputType" : "password",
96 "fieldLabel" : "Confirm PW",
97 "xtype" : "TextField",
98 "String inputType" : "password",
100 "$ xns" : "Roo.form",
104 "Boolean checked" : true,
105 "fieldLabel" : "Active",
106 "xtype" : "Checkbox",
108 "$ xns" : "Roo.form",
109 "String inputValue" : true,
110 "name" : "cntct_active"
115 "fieldLabel" : "Code",
116 "xtype" : "TextField",
117 "allowBlank" : false,
119 "$ xns" : "Roo.form",
120 "name" : "terms_code"
125 "$ xns" : "Roo.form",
126 "name" : "terms_type"
130 "$ xns" : "Roo.form",
139 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
144 "* prop" : "buttons[]"
148 "click" : "function (_self, e)\n{\n // do some checks?\n \n \n \n _this.form.doAction(\"submit\");\n\n}"
153 "* prop" : "buttons[]"