2 "name" : "Pman.Dialog.AdminPerson",
5 "path" : "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminPerson.bjs",
9 "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
10 "7573b7fd7836c9118dbfb69f3abf3858" : "Change / Set Password",
11 "abb1d799e06329cb0c38276ea918300b" : "Secure passwords",
12 "2b0d7f748b64304e6657207cb03cd8f2" : "Edit / Create Staff Details",
13 "7e17f8478e121357b78646ca5b5d5ac9" : "Displaying Settings {0} - {1} of {2}",
14 "bcc254b55c4a1babdf1dcb82c207506b" : "Phone",
15 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
16 "3544848f820b9d94a3f3871a382cf138" : "New password",
17 "689202409e48743b914713f96d93947c" : "Value",
18 "8a25a3ae30ab6e8ceb5b8c4009a3336f" : "Role / Position",
19 "be5f40c0d2692cf4e9f8be8d389737a5" : "Department / Office",
20 "315fce99b77b7f392bf68d5eb14f88c7" : "Password (type again to confirm)",
21 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
22 "e4709a73a287a5f033f5b1b5142cb74d" : "System Settings",
23 "49ee3087348e8d44e1feda1917443987" : "Name",
24 "a5da1d5de4f3a80e2acf5227283c630d" : "Staff Details",
25 "c373dd4bd4ba0b5d3e0c7522c5629880" : "Select Office",
26 "662de0725ac8055bff7edae51fbf3c78" : "No Settings Found",
27 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
28 "e55f75a29310d7b60f7ac1d390c8ae42" : "Module",
29 "b5a7adde1af5c87d7fd797b6245c2a39" : "Description",
30 "c9cc8cce247e49bae79f15173ce97354" : "Save"
33 "secure_password_fieldLabel" : "abb1d799e06329cb0c38276ea918300b",
34 "role_fieldLabel" : "8a25a3ae30ab6e8ceb5b8c4009a3336f",
35 "name_fieldLabel" : "49ee3087348e8d44e1feda1917443987",
36 "office_id_name_emptyText" : "be5f40c0d2692cf4e9f8be8d389737a5",
37 "phone_fieldLabel" : "bcc254b55c4a1babdf1dcb82c207506b",
38 "passwd1_fieldLabel" : "315fce99b77b7f392bf68d5eb14f88c7",
39 "office_id_name_fieldLabel" : "be5f40c0d2692cf4e9f8be8d389737a5",
40 "office_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
41 "email_fieldLabel" : "ce8ae9da5b7cd6c3df2929543a9af92d",
42 "office_id_name_qtip" : "c373dd4bd4ba0b5d3e0c7522c5629880"
46 "Boolean modal" : true,
47 "collapsible" : false,
48 "title" : "Edit / Create Staff Details",
49 "xtype" : "LayoutDialog",
57 "xtype" : "LayoutRegion",
63 "xtype" : "ContentPanel",
65 "String title" : "Staff Details",
69 "|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",
70 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
72 "$ url" : "baseURL + '/Roo/core_person'",
75 "style" : "margin:10px;",
77 "Number labelWidth" : 120,
80 "fieldLabel" : "Name",
81 "xtype" : "TextField",
88 "fieldLabel" : "Email",
89 "xtype" : "TextField",
96 "fieldLabel" : "Role / Position",
97 "xtype" : "TextField",
103 "fieldLabel" : "Phone",
104 "xtype" : "TextField",
106 "$ xns" : "Roo.form",
111 "$ xns" : "Roo.form",
112 "name" : "company_id"
116 "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}"
119 "triggerAction" : "all",
120 "fieldLabel" : "Department / Office",
121 "forceSelection" : true,
122 "selectOnFocus" : true,
124 "displayField" : "name",
125 "emptyText" : "Department / Office",
126 "hiddenName" : "office_id",
129 "xtype" : "ComboBox",
134 "$ xns" : "Roo.form",
135 "name" : "office_id_name",
136 "qtip" : "Select Office",
137 "queryParam" : "query[name]",
138 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
139 "loadingText" : "Searching...",
143 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n var coid = _this.form.findField('company_id').getValue();\n o.params.company_id = coid;\n}\n"
147 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
148 "$ xns" : "Roo.data",
152 "$ url" : "baseURL + '/Roo/core_office'",
153 "xtype" : "HttpProxy",
155 "$ xns" : "Roo.data",
161 "xtype" : "JsonReader",
162 "$ xns" : "Roo.data",
163 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
165 "totalProperty" : "total"
173 "$ xns" : "Roo.form",
177 "xtype" : "FieldSet",
178 "$ xns" : "Roo.form",
179 "String legend" : "Change / Set Password",
180 "String/Object/Function style" : "width:370px",
181 "Number labelWidth" : 200,
184 "fieldLabel" : "New password",
185 "xtype" : "SecurePass",
186 "string inputType" : "password",
188 "$ xns" : "Roo.form",
192 "fieldLabel" : "Password (type again to confirm)",
193 "xtype" : "TextField",
195 "String inputType" : "password",
197 "$ xns" : "Roo.form",
202 "check" : "function (_self, checked)\n{\n this.form.findField('passwd1').insecure = false;\n \n if(!checked){\n this.form.findField('passwd1').insecure = true;\n }\n}"
204 "String name" : "secure_password",
205 "Boolean checked" : true,
206 "xtype" : "Checkbox",
207 "String valueOff" : 0,
208 "$ xns" : "Roo.form",
209 "String fieldLabel" : "Secure passwords",
210 "String inputValue" : 1
220 "|activate" : "function() {\n _this.panel = this;\n \n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
225 "title" : "System Settings",
226 "xtype" : "GridPanel",
227 "fitContainer" : true,
232 "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('refresh');\n }); \n}\n",
233 "|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
235 "autoExpandColumn" : "data",
238 "$ xns" : "Roo.grid",
243 "beforeload" : "function (_self, o)\n{\n \n o.params = o.params ? o.params : {};\n o.params.person_id = _this.form.findField('id').getValue();\n \n \n}"
247 "$ sortInfo" : "{ field : 'name', direction: 'ASC' }",
248 "$ xns" : "Roo.data",
249 "* prop" : "dataSource",
252 "$ url" : "baseURL + '/Roo/core_person_settings'",
254 "xtype" : "HttpProxy",
255 "$ xns" : "Roo.data",
261 "xtype" : "JsonReader",
262 "$ xns" : "Roo.data",
264 "totalProperty" : "total"
270 "xtype" : "PagingToolbar",
271 "emptyMsg" : "No Settings Found",
273 "displayMsg" : "Displaying Settings {0} - {1} of {2}",
274 "displayInfo" : true,
280 "* prop" : "toolbar",
284 "$ xns" : "Roo.Toolbar"
288 "|click" : "function()\n{\n Pman.genericDelete(_this, 'core_person_settings'); \n}\n "
292 "cls" : "x-btn-text-icon",
293 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
294 "$ xns" : "Roo.Toolbar"
299 "xtype" : "ColumnModel",
303 "$ xns" : "Roo.grid",
304 "* prop" : "colModel[]",
305 "dataIndex" : "scope"
308 "xtype" : "ColumnModel",
310 "header" : "Description",
312 "$ renderer" : "function(v) { return String.format('{0}', v); }",
313 "$ xns" : "Roo.grid",
314 "* prop" : "colModel[]",
315 "dataIndex" : "description"
318 "xtype" : "ColumnModel",
322 "$ renderer" : "function(v) { return String.format('{0}', v); }",
323 "$ xns" : "Roo.grid",
324 "* prop" : "colModel[]",
329 "afterselectionchange" : "function (_self)\n{\n // load project members.\n}"
331 "xtype" : "RowSelectionModel",
332 "singleSelect" : true,
333 "$ xns" : "Roo.grid",
342 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
347 "* prop" : "buttons[]"
351 "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}"
356 "* prop" : "buttons[]"