"role_fieldLabel" : "8a25a3ae30ab6e8ceb5b8c4009a3336f",
"name_fieldLabel" : "49ee3087348e8d44e1feda1917443987",
"office_id_name_emptyText" : "be5f40c0d2692cf4e9f8be8d389737a5",
+ "passwd2_fieldLabel" : "315fce99b77b7f392bf68d5eb14f88c7",
"phone_fieldLabel" : "bcc254b55c4a1babdf1dcb82c207506b",
- "passwd1_fieldLabel" : "315fce99b77b7f392bf68d5eb14f88c7",
+ "passwd1_fieldLabel" : "3544848f820b9d94a3f3871a382cf138",
"office_id_name_fieldLabel" : "be5f40c0d2692cf4e9f8be8d389737a5",
"office_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
"email_fieldLabel" : "ce8ae9da5b7cd6c3df2929543a9af92d",
"items" : [
{
"listeners" : {
- "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n _this.dialog.layout.getRegion('center').showPanel(0);\n //_this.dialog.el.mask(\"Loading\");\n if ( _this.data.id* 1 > 0) { \n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n return;\n }\n this.form.findField('company_id').setValue(Pman.Login.authUser.company_id);\n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n",
+ "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n _this.dialog.layout.getRegion('center').showPanel(0);\n //_this.dialog.el.mask(\"Loading\");\n if ( _this.data.id* 1 > 0) { \n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n return;\n }\n this.findField('company_id').setValue(Pman.Login.authUser.company_id);\n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n",
"|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
},
"$ url" : "baseURL + '/Roo/core_person'",
- "xtype" : "Form",
"method" : "POST",
+ "xtype" : "Form",
"style" : "margin:10px;",
"$ xns" : "Roo.form",
"Number labelWidth" : 120,
"items" : [
{
"$ url" : "baseURL + '/Roo/core_office'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
"String inputType" : "password",
"width" : 150,
"$ xns" : "Roo.form",
- "name" : "passwd1"
+ "name" : "passwd2"
},
{
"listeners" : {
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n \n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
},
+ "background" : true,
"region" : "center",
"fitToframe" : true,
- "background" : true,
"title" : "System Settings",
"xtype" : "GridPanel",
"fitContainer" : true,
"items" : [
{
"$ url" : "baseURL + '/Roo/core_person_settings'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"listeners" : {
- "click" : "function (_self, e)\n{\n // do some checks?\n if (this.form.findField('passwd1')) {\n \n var p1 = this.form.findField('passwd1').getValue();\n var p2 = this.form.findField('passwd2').getValue();\n \n if (this.sendAfterSave && !p1.length) {\n Ext.MessageBox.alert(\"Error\", \"You must create a password to send introduction mail\");\n return;\n }\n \n if (Pman.Login.authUser.id < 0 && !p1.length) {\n Ext.MessageBox.alert(\"Error\", \"You must create a password for the admin account\");\n return;\n }\n \n \n if (p1.length || p2.length) {\n if (p1 != p2) {\n Ext.MessageBox.alert(\"Error\", \"Passwords do not match\");\n return;\n }\n }\n \n \n }\n \n \n _this.form.doAction(\"submit\");\n\n}"
+ "click" : "function (_self, e)\n{\n // do some checks?\n if (_this.form.findField('passwd1')) {\n \n var p1 = _this.form.findField('passwd1').getValue();\n var p2 = _this.form.findField('passwd2').getValue();\n \n if (_this.sendAfterSave && !p1.length) {\n Roo.MessageBox.alert(\"Error\", \"You must create a password to send introduction mail\");\n return;\n }\n \n if (Pman.Login.authUser.id < 0 && !p1.length) {\n Roo.MessageBox.alert(\"Error\", \"You must create a password for the admin account\");\n return;\n }\n \n \n if (p1.length || p2.length) {\n if (p1 != p2) {\n Roo.MessageBox.alert(\"Error\", \"Passwords do not match\");\n return;\n }\n }\n \n \n }\n \n \n _this.form.doAction(\"submit\");\n\n}"
},
"text" : "Save",
"xtype" : "Button",