1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.BAdminIPAccess= function() {}
8 Roo.apply(Pman.Dialog.BAdminIPAccess.prototype, {
11 'e2c9d024b79dfb48b42a7807206c6aed' :"Verify New IP Access",
12 'd41d8cd98f00b204e9800998ecf8427e' :"",
13 'a12a3079e14ced46e69ba52b8a90b21a' :"IP",
14 'f6039d44b29456b20f8f373155ae4973' :"Username",
15 '004bf6c9a40003140292e97330236c53' :"Action",
16 '5a787141d53b573ec9b86e900bfe0d79' :"Expire Date",
17 'dfb790522fdea3859af206d32916fe77' :"User Agent",
18 '70d9be9b139893aa6c69b5e77e614311' :"Confirm"
24 show : function(data, cb)
32 this.dialog.show(this.data._el);
35 this.form.setValues(data);
36 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
44 this.dialog = Roo.factory({
47 cls : 'enable-overflow',
48 title : _this._strings['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */,
50 '|xns' : 'Roo.bootstrap',
54 html : _this._strings['70d9be9b139893aa6c69b5e77e614311'] /* Confirm */,
57 click : function (_self, e)
59 if(!_this.form.isValid()){
63 _this.dialog.el.mask('Sending...');
64 _this.form.doAction('submit');
69 '|xns' : 'Roo.bootstrap'
78 url : baseURL + '/Core/VerifyAccess',
80 actioncomplete : function (_self, action)
82 if (action.type == 'setdata') {
85 this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }});
90 if (action.type == 'load') {
94 if (action.type =='submit') {
99 _this.callback.call(this, action.result.data);
106 actionfailed : function (_self, action)
108 _this.dialog.el.unmask();
109 Roo.log("action failed");
112 if(!action.result.errorMsg){
113 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
116 var msg = action.result.errorMsg;
118 if(msg.length >= 200){
119 msg = msg.substring(0,199) + '...'
122 Roo.bootstrap.MessageBox.alert("Error", msg);
124 render : function (_self,e)
131 '|xns' : 'Roo.bootstrap',
136 '|xns' : 'Roo.bootstrap',
142 '|xns' : 'Roo.bootstrap',
146 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
150 '|xns' : 'Roo.bootstrap'
158 '|xns' : 'Roo.bootstrap',
162 fieldLabel : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
166 '|xns' : 'Roo.bootstrap'
174 '|xns' : 'Roo.bootstrap',
178 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
182 style : 'margin-bottom: 15px;',
184 '|xns' : 'Roo.bootstrap'
192 '|xns' : 'Roo.bootstrap',
198 displayField : 'value',
200 fieldLabel : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
201 forceSelection : true,
202 hiddenName : 'status',
203 indicatorpos : 'right',
205 name : 'status_name',
206 selectOnFocus : true,
207 tpl : '<div class=\"roo-select2-result\"><b>{value}</b></div>',
208 triggerAction : 'all',
211 select : function (combo, record, index)
213 _this.expire_dt.allowBlank = true;
214 _this.expire_dt.el.hide();
216 if(record.data.code == '-2'){
217 _this.expire_dt.allowBlank = false;
218 _this.expire_dt.el.show();
223 '|xns' : 'Roo.bootstrap',
225 xtype : 'SimpleStore',
231 fields : [ 'code', 'value' ],
242 '|xns' : 'Roo.bootstrap',
247 fieldLabel : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
249 indicatorpos : 'right',
252 render : function (_self)
254 _this.expire_dt = this;
258 d.setDate(d.getDate() - 1);
260 this.setStartDate(d);
262 this.el.setVisibilityMode(Roo.Element.DISPLAY);
268 '|xns' : 'Roo.bootstrap'
277 '|xns' : 'Roo.bootstrap',
283 '|xns' : 'Roo.bootstrap',
287 inputType : 'hidden',
290 '|xns' : 'Roo.bootstrap'
294 inputType : 'hidden',
295 name : 'authorized_key',
297 '|xns' : 'Roo.bootstrap'
308 render : function (_self)
310 _this.error_row = this;
312 this.el.setVisibilityMode(Roo.Element.DISPLAY);
318 '|xns' : 'Roo.bootstrap',
324 '|xns' : 'Roo.bootstrap',
328 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
330 render : function (_self)
332 _this.text_el = _self;
336 '|xns' : 'Roo.bootstrap'
346 Roo.apply(Pman.Dialog.BAdminIPAccess, Pman.Dialog.BAdminIPAccess.prototype);