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