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 "passwd2_fieldLabel" : "315fce99b77b7f392bf68d5eb14f88c7",
38 "phone_fieldLabel" : "bcc254b55c4a1babdf1dcb82c207506b",
39 "passwd1_fieldLabel" : "3544848f820b9d94a3f3871a382cf138",
40 "office_id_name_fieldLabel" : "be5f40c0d2692cf4e9f8be8d389737a5",
41 "office_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
42 "email_fieldLabel" : "ce8ae9da5b7cd6c3df2929543a9af92d",
43 "office_id_name_qtip" : "c373dd4bd4ba0b5d3e0c7522c5629880"
47 "Boolean modal" : true,
48 "collapsible" : false,
49 "title" : "Edit / Create Staff Details",
50 "xtype" : "LayoutDialog",
58 "xtype" : "LayoutRegion",
64 "xtype" : "ContentPanel",
66 "String title" : "Staff Details",
70 "|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",
71 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
73 "$ url" : "baseURL + '/Roo/core_person'",
76 "style" : "margin:10px;",
78 "Number labelWidth" : 120,
81 "fieldLabel" : "Name",
82 "xtype" : "TextField",
89 "fieldLabel" : "Email",
90 "xtype" : "TextField",
97 "fieldLabel" : "Role / Position",
98 "xtype" : "TextField",
100 "$ xns" : "Roo.form",
104 "fieldLabel" : "Phone",
105 "xtype" : "TextField",
107 "$ xns" : "Roo.form",
112 "$ xns" : "Roo.form",
113 "name" : "company_id"
117 "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}"
120 "triggerAction" : "all",
121 "fieldLabel" : "Department / Office",
122 "forceSelection" : true,
123 "selectOnFocus" : true,
125 "displayField" : "name",
126 "emptyText" : "Department / Office",
127 "hiddenName" : "office_id",
130 "xtype" : "ComboBox",
135 "$ xns" : "Roo.form",
136 "name" : "office_id_name",
137 "qtip" : "Select Office",
138 "queryParam" : "query[name]",
139 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
140 "loadingText" : "Searching...",
144 "|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"
148 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
149 "$ xns" : "Roo.data",
153 "$ url" : "baseURL + '/Roo/core_office'",
155 "xtype" : "HttpProxy",
156 "$ xns" : "Roo.data",
162 "xtype" : "JsonReader",
163 "$ xns" : "Roo.data",
164 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
166 "totalProperty" : "total"
174 "$ xns" : "Roo.form",
178 "xtype" : "FieldSet",
179 "$ xns" : "Roo.form",
180 "String legend" : "Change / Set Password",
181 "String/Object/Function style" : "width:370px",
182 "Number labelWidth" : 200,
185 "fieldLabel" : "New password",
186 "xtype" : "SecurePass",
187 "string inputType" : "password",
189 "$ xns" : "Roo.form",
193 "fieldLabel" : "Password (type again to confirm)",
194 "xtype" : "TextField",
196 "String inputType" : "password",
198 "$ xns" : "Roo.form",
203 "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}"
205 "String name" : "secure_password",
206 "Boolean checked" : true,
207 "xtype" : "Checkbox",
208 "String valueOff" : 0,
209 "$ xns" : "Roo.form",
210 "String fieldLabel" : "Secure passwords",
211 "String inputValue" : 1
221 "|activate" : "function() {\n _this.panel = this;\n \n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
226 "title" : "System Settings",
227 "xtype" : "GridPanel",
228 "fitContainer" : true,
233 "|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",
234 "|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}"
236 "autoExpandColumn" : "data",
239 "$ xns" : "Roo.grid",
244 "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}"
248 "$ sortInfo" : "{ field : 'name', direction: 'ASC' }",
249 "$ xns" : "Roo.data",
250 "* prop" : "dataSource",
253 "$ url" : "baseURL + '/Roo/core_person_settings'",
254 "xtype" : "HttpProxy",
256 "$ xns" : "Roo.data",
262 "xtype" : "JsonReader",
263 "$ xns" : "Roo.data",
265 "totalProperty" : "total"
271 "xtype" : "PagingToolbar",
272 "emptyMsg" : "No Settings Found",
274 "displayMsg" : "Displaying Settings {0} - {1} of {2}",
275 "displayInfo" : true,
281 "* prop" : "toolbar",
285 "$ xns" : "Roo.Toolbar"
289 "|click" : "function()\n{\n Pman.genericDelete(_this, 'core_person_settings'); \n}\n "
293 "cls" : "x-btn-text-icon",
294 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
295 "$ xns" : "Roo.Toolbar"
300 "xtype" : "ColumnModel",
304 "$ xns" : "Roo.grid",
305 "* prop" : "colModel[]",
306 "dataIndex" : "scope"
309 "xtype" : "ColumnModel",
311 "header" : "Description",
313 "$ renderer" : "function(v) { return String.format('{0}', v); }",
314 "$ xns" : "Roo.grid",
315 "* prop" : "colModel[]",
316 "dataIndex" : "description"
319 "xtype" : "ColumnModel",
323 "$ renderer" : "function(v) { return String.format('{0}', v); }",
324 "$ xns" : "Roo.grid",
325 "* prop" : "colModel[]",
330 "afterselectionchange" : "function (_self)\n{\n // load project members.\n}"
332 "xtype" : "RowSelectionModel",
333 "singleSelect" : true,
334 "$ xns" : "Roo.grid",
343 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
348 "* prop" : "buttons[]"
352 "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}"
357 "* prop" : "buttons[]"