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   'bcc254b55c4a1babdf1dcb82c207506b' :"Phone",
12   '8a25a3ae30ab6e8ceb5b8c4009a3336f' :"Role / Position",
13   '5067d67ab0b0ab1e1099d1de30eccd82' :"Contac Name",
14   'ea4788705e6873b424c65e91c2846b19' :"Cancel",
15   '11dcfc58d8c9aed80d13d85369b854db' :"Person Editor",
16   'c9cc8cce247e49bae79f15173ce97354' :"Save"
17  },
18
19  dialog : false,
20  callback:  false,
21
22  show : function(data, cb)
23  {
24   if (!this.dialog) {
25    this.create();
26   }
27
28   this.callback = cb;
29   this.data = data;
30   this.dialog.show(this.data._el);
31   if (this.form) {
32    this.form.reset();
33    this.form.setValues(data);
34    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
35   }
36
37  },
38
39  create : function()
40  {
41   var _this = this;
42   this.dialog = Roo.factory({
43     xtype : 'Modal',
44     title : _this._strings['11dcfc58d8c9aed80d13d85369b854db'] /* Person Editor */,
45     listeners : {
46      render : function (_self)
47       {
48           _this.modal = _self;
49       }
50     },
51     xns : Roo.bootstrap,
52     '|xns' : 'Roo.bootstrap',
53     buttons : [
54      {
55       xtype : 'Button',
56       html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
57       style : 'float: right; margin: 10px; width: 70px;',
58       weight : 'primary',
59       listeners : {
60        click : function (_self, e)
61         {
62             _this.dialog.hide();
63         }
64       },
65       xns : Roo.bootstrap,
66       '|xns' : 'Roo.bootstrap'
67      },
68      {
69       xtype : 'Button',
70       html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
71       style : 'float: right; margin: 10px; width: 70px;',
72       weight : 'primary',
73       xns : Roo.bootstrap,
74       '|xns' : 'Roo.bootstrap'
75      }
76     ],
77     items  : [
78      {
79       xtype : 'Form',
80       xns : Roo.bootstrap,
81       '|xns' : 'Roo.bootstrap',
82       items  : [
83        {
84         xtype : 'Row',
85         cls : 'col-md-12',
86         xns : Roo.bootstrap,
87         '|xns' : 'Roo.bootstrap',
88         items  : [
89          {
90           xtype : 'Container',
91           cls : 'col-sm-12',
92           xns : Roo.bootstrap,
93           '|xns' : 'Roo.bootstrap',
94           items  : [
95            {
96             xtype : 'Input',
97             fieldLabel : _this._strings['5067d67ab0b0ab1e1099d1de30eccd82'] /* Contac Name */,
98             name : 'name',
99             listeners : {
100              render : function (_self)
101               {
102                   _this.userNmae = self;
103               }
104             },
105             xns : Roo.bootstrap,
106             '|xns' : 'Roo.bootstrap'
107            },
108            {
109             xtype : 'Input',
110             fieldLabel : _this._strings['8a25a3ae30ab6e8ceb5b8c4009a3336f'] /* Role / Position */,
111             name : 'role',
112             listeners : {
113              render : function (_self)
114               {
115                   _this.role = self;
116               }
117             },
118             xns : Roo.bootstrap,
119             '|xns' : 'Roo.bootstrap'
120            },
121            {
122             xtype : 'Input',
123             fieldLabel : _this._strings['bcc254b55c4a1babdf1dcb82c207506b'] /* Phone */,
124             name : 'phone',
125             listeners : {
126              render : function (_self)
127               {
128                   _this.phone = self;
129               }
130             },
131             xns : Roo.bootstrap,
132             '|xns' : 'Roo.bootstrap'
133            }
134           ]
135          }
136         ]
137        }
138       ]
139      }
140     ]
141    }  );
142  }
143 });
144 Roo.apply(Pman.Dialog.PersonEditor, Pman.Dialog.PersonEditor.prototype);