1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.XtupleTerms = {
12 show : function(data, cb)
20 this.dialog.show(this.data._el);
23 this.form.setValues(data);
24 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
32 this.dialog = Roo.factory({
35 xtype : 'LayoutRegion',
41 title : "Create / Edit Terms",
42 xtype : 'LayoutDialog',
55 click : function (_self, e)
67 click : function (_self, e)
73 _this.form.doAction("submit");
83 xtype : 'ContentPanel',
88 url : baseURL + '/Roo/terms.php',
91 style : 'margin:10px;',
94 actioncomplete : function(_self,action)
96 if (action.type == 'setdata') {
98 this.load({ method: 'GET', params: { _id : _this.data.id}});
104 if (action.type == 'load') {
107 if (action.type =='submit') {
111 if (_this.callback) {
112 _this.callback.call(_this, _this.form.getValues());
119 rendered : function (form)
127 style : 'width:420px',
134 fieldLabel : 'First Name',
139 name : 'cntct_first_name'
143 fieldLabel : 'Last Name',
147 name : 'cntct_last_name'
151 fieldLabel : 'Phone',
153 regex : /^[0-9 +-]+$/,
162 regex : /^[0-9 +-]+$/,
165 name : 'cntct_phone2'
170 fieldLabel : 'Email',
179 fieldLabel : 'Password',
181 inputType : 'password',
188 fieldLabel : 'Confirm PW',
190 inputType : 'password',
198 fieldLabel : 'Active',
203 name : 'cntct_active'