PHP8
[Pman.BAdmin] / Pman.Dialog.PersonEditor.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Roo.namespace('Pman.Dialog');
6
7 Pman.Dialog.PersonEditor= function() {}
8 Roo.apply(Pman.Dialog.PersonEditor.prototype, {
9
10  _strings : {
11   'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
12   'abb1d799e06329cb0c38276ea918300b' :"Secure passwords",
13   'bcc254b55c4a1babdf1dcb82c207506b' :"Phone",
14   'dc647eb65e6711e155375218212b3964' :"Password",
15   'ea4788705e6873b424c65e91c2846b19' :"Cancel",
16   'bbbabdbe1b262f75d99d62880b953be1' :"Role",
17   '11dcfc58d8c9aed80d13d85369b854db' :"Person Editor",
18   '49ee3087348e8d44e1feda1917443987' :"Name",
19   '1f9a645ca5ecbde5f93612791b54218f' :"Password (Retype)",
20   'c9cc8cce247e49bae79f15173ce97354' :"Save",
21   '9810aa2b9f44401be4bf73188ef2b67d' :"Fax"
22  },
23
24  dialog : false,
25  callback:  false,
26
27  show : function(data, cb)
28  {
29   if (!this.dialog) {
30    this.create();
31   }
32
33   this.callback = cb;
34   this.data = data;
35   this.dialog.show(this.data._el);
36   if (this.form) {
37    this.form.reset();
38    this.form.setValues(data);
39    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
40   }
41
42  },
43
44  create : function()
45  {
46   var _this = this;
47   this.dialog = Roo.factory({
48     xtype : 'Modal',
49     title : _this._strings['11dcfc58d8c9aed80d13d85369b854db'] /* Person Editor */,
50     listeners : {
51      render : function (_self)
52       {
53           _this.modal = _self;
54       }
55     },
56     xns : Roo.bootstrap,
57     '|xns' : 'Roo.bootstrap',
58     buttons : [
59      {
60       xtype : 'Button',
61       html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
62       style : 'float: right; margin: 10px; width: 70px;',
63       weight : 'primary',
64       listeners : {
65        click : function (_self, e)
66         {
67             _this.dialog.hide();
68         }
69       },
70       xns : Roo.bootstrap,
71       '|xns' : 'Roo.bootstrap'
72      },
73      {
74       xtype : 'Button',
75       html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
76       style : 'float: right; margin: 10px; width: 70px;',
77       weight : 'primary',
78       xns : Roo.bootstrap,
79       '|xns' : 'Roo.bootstrap'
80      }
81     ],
82     items  : [
83      {
84       xtype : 'Form',
85       listeners : {
86        render : function (_self)
87         {
88             _this.form = _self;
89         }
90       },
91       xns : Roo.bootstrap,
92       '|xns' : 'Roo.bootstrap',
93       items  : [
94        {
95         xtype : 'Row',
96         cls : 'col-md-12',
97         xns : Roo.bootstrap,
98         '|xns' : 'Roo.bootstrap',
99         items  : [
100          {
101           xtype : 'Container',
102           cls : 'col-md-12',
103           xns : Roo.bootstrap,
104           '|xns' : 'Roo.bootstrap',
105           items  : [
106            {
107             xtype : 'Input',
108             fieldLabel : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
109             labelAlign : 'left',
110             name : 'name',
111             listeners : {
112              render : function (_self)
113               {
114                   _this.userNmae = self;
115               }
116             },
117             xns : Roo.bootstrap,
118             '|xns' : 'Roo.bootstrap'
119            },
120            {
121             xtype : 'Input',
122             fieldLabel : _this._strings['bbbabdbe1b262f75d99d62880b953be1'] /* Role */,
123             labelAlign : 'left',
124             name : 'role',
125             listeners : {
126              render : function (_self)
127               {
128                   _this.role = self;
129               }
130             },
131             xns : Roo.bootstrap,
132             '|xns' : 'Roo.bootstrap'
133            },
134            {
135             xtype : 'Input',
136             fieldLabel : _this._strings['bcc254b55c4a1babdf1dcb82c207506b'] /* Phone */,
137             labelAlign : 'left',
138             name : 'phone',
139             listeners : {
140              render : function (_self)
141               {
142                   _this.phone = self;
143               }
144             },
145             xns : Roo.bootstrap,
146             '|xns' : 'Roo.bootstrap'
147            },
148            {
149             xtype : 'Input',
150             fieldLabel : _this._strings['9810aa2b9f44401be4bf73188ef2b67d'] /* Fax */,
151             labelAlign : 'left',
152             name : 'fax',
153             listeners : {
154              render : function (_self)
155               {
156                   _this.fax = self;
157               }
158             },
159             xns : Roo.bootstrap,
160             '|xns' : 'Roo.bootstrap'
161            },
162            {
163             xtype : 'Input',
164             fieldLabel : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
165             labelAlign : 'left',
166             name : 'email',
167             listeners : {
168              render : function (_self)
169               {
170                   _this.email = self;
171               }
172             },
173             xns : Roo.bootstrap,
174             '|xns' : 'Roo.bootstrap'
175            },
176            {
177             xtype : 'Input',
178             fieldLabel : _this._strings['dc647eb65e6711e155375218212b3964'] /* Password */,
179             inputType : 'password',
180             labelAlign : 'left',
181             name : 'passwd1',
182             xns : Roo.bootstrap,
183             '|xns' : 'Roo.bootstrap'
184            },
185            {
186             xtype : 'Input',
187             fieldLabel : _this._strings['1f9a645ca5ecbde5f93612791b54218f'] /* Password (Retype) */,
188             inputType : 'password',
189             labelAlign : 'left',
190             name : 'passwd2',
191             xns : Roo.bootstrap,
192             '|xns' : 'Roo.bootstrap'
193            }
194           ]
195          }
196         ]
197        },
198        {
199         xtype : 'Row',
200         cls : 'col-md-12',
201         xns : Roo.bootstrap,
202         '|xns' : 'Roo.bootstrap',
203         items  : [
204          {
205           xtype : 'Container',
206           cls : 'col-md-12',
207           xns : Roo.bootstrap,
208           '|xns' : 'Roo.bootstrap',
209           items  : [
210            {
211             xtype : 'Input',
212             align : 'left',
213             checked : true,
214             fieldLabel : _this._strings['abb1d799e06329cb0c38276ea918300b'] /* Secure passwords */,
215             inputType : 'checkbox',
216             labelAlign : 'left',
217             listeners : '{\n                    check : function (_self, checked) {\n                        this.form.findField(\'passwd1\').insecure = false;\n\n                        if(!checked){\n                            this.form.findField(\'passwd1\').insecure = true;\n                        }\n                    }\n                }\n',
218             name : 'secure_password',
219             xns : Roo.bootstrap,
220             '|xns' : 'Roo.bootstrap'
221            }
222           ]
223          }
224         ]
225        }
226       ]
227      },
228      {
229       xtype : 'Row',
230       xns : Roo.bootstrap,
231       '|xns' : 'Roo.bootstrap',
232       items  : [
233        {
234         xtype : 'Column',
235         xns : Roo.bootstrap,
236         '|xns' : 'Roo.bootstrap'
237        }
238       ]
239      }
240     ]
241    }  );
242  }
243 });
244 Roo.apply(Pman.Dialog.PersonEditor, Pman.Dialog.PersonEditor.prototype);