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.VerifyAccess= function() {}
8 Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
11 'e2c9d024b79dfb48b42a7807206c6aed' :"Verify New IP Access",
12 'd41d8cd98f00b204e9800998ecf8427e' :"",
13 'f6039d44b29456b20f8f373155ae4973' :"Username",
14 '004bf6c9a40003140292e97330236c53' :"Action",
15 'dfb790522fdea3859af206d32916fe77' :"User Agent",
16 'd71940f24ee38ee09f6e06b908480bcf' :"Resend email",
17 '14cf5e829f5cb6fbf8cb54f7c5ff4ca9' :"Start the application process "
23 show : function(data, cb)
31 this.dialog.show(this.data._el);
34 this.form.setValues(data);
35 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
43 this.dialog = Roo.factory({
46 cls : 'enable-overflow',
47 title : _this._strings['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */,
49 show : function (_self)
51 var path = window.location.pathname.split('/');
53 var authorized_key = path.pop();
58 url: baseURL + '/Core/VerifyAccess',
63 authorized_key : authorized_key,
66 success : function(res) {
68 _this.data = res.data;
70 _this.form.setValues(_this.data);
74 failure: function(res) {
78 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
86 '|xns' : 'Roo.bootstrap',
90 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
93 click : function (_self, e)
95 if(!_this.form.isValid()){
99 _this.dialog.el.mask('Sending...');
100 _this.form.doAction('submit');
105 '|xns' : 'Roo.bootstrap'
109 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
112 click : function (_self, e)
114 var path = window.location.pathname.split('/');
116 var verify_key = path.pop();
121 url: baseURL + '/Roo/Coba_application_signup',
127 success : function(res) {
128 var msg = "We have re-sent you an invitation via email." +
130 "Please check your inbox for the final registration step." +
132 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
134 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
136 failure: function(res) {
137 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
141 render : function (_self)
143 _this.btn_resend = _self;
144 this.el.setVisibilityMode(Roo.Element.DISPLAY);
149 '|xns' : 'Roo.bootstrap'
158 url : baseURL + '/Core/VerifyAccess',
160 actioncomplete : function (_self, action)
162 if (action.type == 'setdata') {
166 if (action.type == 'load') {
168 if(_this.data.status * 1 == 0){
169 _this.form.findField('status').reset();
174 if (action.type =='submit') {
182 actionfailed : function (_self, action)
184 _this.dialog.el.unmask();
185 Roo.log("action failed");
188 if(!action.result.errorMsg){
189 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
192 var msg = action.result.errorMsg;
194 if(msg.length >= 200){
195 msg = msg.substring(0,199) + '...'
198 Roo.bootstrap.MessageBox.alert("Error", msg);
200 render : function (_self,e)
207 '|xns' : 'Roo.bootstrap',
212 '|xns' : 'Roo.bootstrap',
218 '|xns' : 'Roo.bootstrap',
222 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
226 '|xns' : 'Roo.bootstrap'
235 '|xns' : 'Roo.bootstrap',
241 '|xns' : 'Roo.bootstrap',
245 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
249 style : 'margin-bottom: 15px;',
251 '|xns' : 'Roo.bootstrap'
260 '|xns' : 'Roo.bootstrap',
266 '|xns' : 'Roo.bootstrap',
271 displayField : 'value',
273 fieldLabel : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
274 hiddenName : 'status',
276 name : 'status_name',
277 triggerAction : 'all',
280 select : function (combo, record, index)
286 '|xns' : 'Roo.bootstrap',
288 xtype : 'SimpleStore',
293 fields : [ 'code', 'value' ],
305 '|xns' : 'Roo.bootstrap',
311 '|xns' : 'Roo.bootstrap',
315 inputType : 'hidden',
318 '|xns' : 'Roo.bootstrap'
322 inputType : 'hidden',
323 name : 'authorized_key',
325 '|xns' : 'Roo.bootstrap'
336 render : function (_self)
338 _this.error_row = this;
340 this.el.setVisibilityMode(Roo.Element.DISPLAY);
346 '|xns' : 'Roo.bootstrap',
352 '|xns' : 'Roo.bootstrap',
356 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
358 render : function (_self)
360 _this.text_el = _self;
364 '|xns' : 'Roo.bootstrap'
374 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);