{ "name" : "Pman.Dialog.AdminPerson", "parent" : "", "title" : "", "path" : "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminPerson.bjs", "permname" : "", "modOrder" : "001", "strings" : { "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email", "7573b7fd7836c9118dbfb69f3abf3858" : "Change / Set Password", "abb1d799e06329cb0c38276ea918300b" : "Secure passwords", "2b0d7f748b64304e6657207cb03cd8f2" : "Edit / Create Staff Details", "7e17f8478e121357b78646ca5b5d5ac9" : "Displaying Settings {0} - {1} of {2}", "bcc254b55c4a1babdf1dcb82c207506b" : "Phone", "1243daf593fa297e07ab03bf06d925af" : "Searching...", "3544848f820b9d94a3f3871a382cf138" : "New password", "689202409e48743b914713f96d93947c" : "Value", "8a25a3ae30ab6e8ceb5b8c4009a3336f" : "Role / Position", "be5f40c0d2692cf4e9f8be8d389737a5" : "Department / Office", "315fce99b77b7f392bf68d5eb14f88c7" : "Password (type again to confirm)", "ea4788705e6873b424c65e91c2846b19" : "Cancel", "e4709a73a287a5f033f5b1b5142cb74d" : "System Settings", "49ee3087348e8d44e1feda1917443987" : "Name", "a5da1d5de4f3a80e2acf5227283c630d" : "Staff Details", "c373dd4bd4ba0b5d3e0c7522c5629880" : "Select Office", "662de0725ac8055bff7edae51fbf3c78" : "No Settings Found", "f2a6c498fb90ee345d997f888fce3b18" : "Delete", "e55f75a29310d7b60f7ac1d390c8ae42" : "Module", "b5a7adde1af5c87d7fd797b6245c2a39" : "Description", "c9cc8cce247e49bae79f15173ce97354" : "Save" }, "named_strings" : { "secure_password_fieldLabel" : "abb1d799e06329cb0c38276ea918300b", "role_fieldLabel" : "8a25a3ae30ab6e8ceb5b8c4009a3336f", "name_fieldLabel" : "49ee3087348e8d44e1feda1917443987", "office_id_name_emptyText" : "be5f40c0d2692cf4e9f8be8d389737a5", "passwd2_fieldLabel" : "315fce99b77b7f392bf68d5eb14f88c7", "phone_fieldLabel" : "bcc254b55c4a1babdf1dcb82c207506b", "passwd1_fieldLabel" : "3544848f820b9d94a3f3871a382cf138", "office_id_name_fieldLabel" : "be5f40c0d2692cf4e9f8be8d389737a5", "office_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af", "email_fieldLabel" : "ce8ae9da5b7cd6c3df2929543a9af92d", "office_id_name_qtip" : "c373dd4bd4ba0b5d3e0c7522c5629880" }, "items" : [ { "Boolean modal" : true, "collapsible" : false, "title" : "Edit / Create Staff Details", "xtype" : "LayoutDialog", "width" : 450, "$ xns" : "Roo", "closable" : false, "resizable" : false, "height" : 400, "items" : [ { "xtype" : "LayoutRegion", "$ xns" : "Roo", "* prop" : "center" }, { "region" : "center", "xtype" : "ContentPanel", "$ xns" : "Roo", "String title" : "Staff Details", "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.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'", "method" : "POST", "xtype" : "Form", "style" : "margin:10px;", "$ xns" : "Roo.form", "Number labelWidth" : 120, "items" : [ { "fieldLabel" : "Name", "xtype" : "TextField", "allowBlank" : true, "width" : 250, "$ xns" : "Roo.form", "name" : "name" }, { "fieldLabel" : "Email", "xtype" : "TextField", "allowBlank" : false, "width" : 250, "$ xns" : "Roo.form", "name" : "email" }, { "fieldLabel" : "Role / Position", "xtype" : "TextField", "width" : 250, "$ xns" : "Roo.form", "name" : "role" }, { "fieldLabel" : "Phone", "xtype" : "TextField", "width" : 150, "$ xns" : "Roo.form", "name" : "phone" }, { "xtype" : "Hidden", "$ xns" : "Roo.form", "name" : "company_id" }, { "listeners" : { "beforequery" : "function (combo, query, forceAll, cancel, e)\n{\n var coid = _this.form.findField('company_id').getValue();\n if (coid < 1 ) {\n Ext.MessageBox.alert(\"Error\", \"Select An Company First\");\n return false;\n }\n}" }, "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Department / Office", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "name", "emptyText" : "Department / Office", "hiddenName" : "office_id", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "allowBlank" : true, "typeAhead" : true, "editable" : false, "width" : 250, "$ xns" : "Roo.form", "name" : "office_id_name", "qtip" : "Select Office", "queryParam" : "query[name]", "tpl" : "