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   'c9cc8cce247e49bae79f15173ce97354' :"Save",
12   '11dcfc58d8c9aed80d13d85369b854db' :"Person Editor",
13   '49ee3087348e8d44e1feda1917443987' :"Name"
14  },
15
16  dialog : false,
17  callback:  false,
18
19  show : function(data, cb)
20  {
21   if (!this.dialog) {
22    this.create();
23   }
24
25   this.callback = cb;
26   this.data = data;
27   this.dialog.show(this.data._el);
28   if (this.form) {
29    this.form.reset();
30    this.form.setValues(data);
31    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
32   }
33
34  },
35
36  create : function()
37  {
38   var _this = this;
39   this.dialog = Roo.factory({
40     xtype : 'Modal',
41     title : _this._strings['11dcfc58d8c9aed80d13d85369b854db'] /* Person Editor */,
42     listeners : {
43      render : function (_self)
44       {
45           _this.modal = _self;
46       }
47     },
48     xns : Roo.bootstrap,
49     '|xns' : 'Roo.bootstrap',
50     buttons : [
51      {
52       xtype : 'Button',
53       html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
54       style : 'float: right; margin: 10px; width: 70px;',
55       weight : 'primary',
56       xns : Roo.bootstrap,
57       '|xns' : 'Roo.bootstrap'
58      }
59     ],
60     items  : [
61      {
62       xtype : 'Form',
63       xns : Roo.bootstrap,
64       '|xns' : 'Roo.bootstrap',
65       items  : [
66        {
67         xtype : 'Row',
68         cls : 'col-md-12',
69         xns : Roo.bootstrap,
70         '|xns' : 'Roo.bootstrap',
71         items  : [
72          {
73           xtype : 'Container',
74           cls : 'col-sm-12',
75           xns : Roo.bootstrap,
76           '|xns' : 'Roo.bootstrap',
77           items  : [
78            {
79             xtype : 'Input',
80             fieldLabel : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
81             name : 'name',
82             listeners : {
83              render : function (_self)
84               {
85                   _this.userNmae = self;
86               }
87             },
88             xns : Roo.bootstrap,
89             '|xns' : 'Roo.bootstrap'
90            }
91           ]
92          }
93         ]
94        }
95       ]
96      }
97     ]
98    }  );
99  }
100 });
101 Roo.apply(Pman.Dialog.PersonEditor, Pman.Dialog.PersonEditor.prototype);