Pman.Dialog.PersonEditor.bjs
[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   '8a25a3ae30ab6e8ceb5b8c4009a3336f' :"Role / Position",
15   '5067d67ab0b0ab1e1099d1de30eccd82' :"Contac Name",
16   '315fce99b77b7f392bf68d5eb14f88c7' :"Password (type again to confirm)",
17   'ea4788705e6873b424c65e91c2846b19' :"Cancel",
18   'ae3bb2a1ac61750150b606298091d38a' :"New Password",
19   '11dcfc58d8c9aed80d13d85369b854db' :"Person Editor",
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       xns : Roo.bootstrap,
86       '|xns' : 'Roo.bootstrap',
87       items  : [
88        {
89         xtype : 'Row',
90         cls : 'col-md-12',
91         xns : Roo.bootstrap,
92         '|xns' : 'Roo.bootstrap',
93         items  : [
94          {
95           xtype : 'Container',
96           cls : 'col-sm-12',
97           xns : Roo.bootstrap,
98           '|xns' : 'Roo.bootstrap',
99           items  : [
100            {
101             xtype : 'Input',
102             fieldLabel : _this._strings['5067d67ab0b0ab1e1099d1de30eccd82'] /* Contac Name */,
103             name : 'name',
104             listeners : {
105              render : function (_self)
106               {
107                   _this.userNmae = self;
108               }
109             },
110             xns : Roo.bootstrap,
111             '|xns' : 'Roo.bootstrap'
112            },
113            {
114             xtype : 'Input',
115             fieldLabel : _this._strings['8a25a3ae30ab6e8ceb5b8c4009a3336f'] /* Role / Position */,
116             name : 'role',
117             listeners : {
118              render : function (_self)
119               {
120                   _this.role = self;
121               }
122             },
123             xns : Roo.bootstrap,
124             '|xns' : 'Roo.bootstrap'
125            },
126            {
127             xtype : 'Input',
128             fieldLabel : _this._strings['bcc254b55c4a1babdf1dcb82c207506b'] /* Phone */,
129             name : 'phone',
130             listeners : {
131              render : function (_self)
132               {
133                   _this.phone = self;
134               }
135             },
136             xns : Roo.bootstrap,
137             '|xns' : 'Roo.bootstrap'
138            },
139            {
140             xtype : 'Input',
141             fieldLabel : _this._strings['9810aa2b9f44401be4bf73188ef2b67d'] /* Fax */,
142             name : 'fax',
143             listeners : {
144              render : function (_self)
145               {
146                   _this.fax = self;
147               }
148             },
149             xns : Roo.bootstrap,
150             '|xns' : 'Roo.bootstrap'
151            },
152            {
153             xtype : 'Input',
154             fieldLabel : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
155             name : 'email',
156             listeners : {
157              render : function (_self)
158               {
159                   _this.email = self;
160               }
161             },
162             xns : Roo.bootstrap,
163             '|xns' : 'Roo.bootstrap'
164            },
165            {
166             xtype : 'Input',
167             fieldLabel : _this._strings['ae3bb2a1ac61750150b606298091d38a'] /* New Password */,
168             inputType : 'password',
169             name : 'password1',
170             xns : Roo.bootstrap,
171             '|xns' : 'Roo.bootstrap'
172            },
173            {
174             xtype : 'Input',
175             fieldLabel : _this._strings['315fce99b77b7f392bf68d5eb14f88c7'] /* Password (type again to confirm) */,
176             inputType : 'password',
177             name : 'password2',
178             xns : Roo.bootstrap,
179             '|xns' : 'Roo.bootstrap'
180            },
181            {
182             xtype : 'Input',
183             align : 'left',
184             fieldLabel : _this._strings['abb1d799e06329cb0c38276ea918300b'] /* Secure passwords */,
185             inputType : 'checkbox',
186             name : 'secure_password',
187             xns : Roo.bootstrap,
188             '|xns' : 'Roo.bootstrap'
189            }
190           ]
191          }
192         ]
193        }
194       ]
195      }
196     ]
197    }  );
198  }
199 });
200 Roo.apply(Pman.Dialog.PersonEditor, Pman.Dialog.PersonEditor.prototype);