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) {
67 _this.form.setValues(res.data);
70 failure: function(res) {
74 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
82 '|xns' : 'Roo.bootstrap',
86 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
89 click : function (_self, e)
91 if(!_this.form.isValid()){
95 var p1 = _this.form.findField('password').getValue();
96 var p2 = _this.form.findField('password1').getValue();
99 _this.form.findField('password1').markInvalid('Password do not match');
103 _this.dialog.el.mask('Sending...');
104 _this.form.doAction('submit');
107 render : function (_self)
109 _this.btn_ok = _self;
113 '|xns' : 'Roo.bootstrap'
117 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
120 click : function (_self, e)
122 var path = window.location.pathname.split('/');
124 var verify_key = path.pop();
129 url: baseURL + '/Roo/Coba_application_signup',
135 success : function(res) {
136 var msg = "We have re-sent you an invitation via email." +
138 "Please check your inbox for the final registration step." +
140 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
142 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
144 failure: function(res) {
145 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
149 render : function (_self)
151 _this.btn_resend = _self;
152 this.el.setVisibilityMode(Roo.Element.DISPLAY);
157 '|xns' : 'Roo.bootstrap'
166 url : baseURL + '/Core/VerifyAccess',
168 actioncomplete : function (_self, action)
170 if (action.type == 'setdata') {
174 if (action.type == 'load') {
178 if (action.type =='submit') {
182 Roo.get(document.body).mask('Start your Application');
184 setTimeout(function() {
185 window.location.href = baseURL;
192 actionfailed : function (_self, action)
194 _this.dialog.el.unmask();
195 Roo.log("action failed");
198 if(!action.result.errorMsg){
199 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
202 var msg = action.result.errorMsg;
204 if(msg.length >= 200){
205 msg = msg.substring(0,199) + '...'
208 Roo.bootstrap.MessageBox.alert("Error", msg);
210 render : function (_self,e)
217 '|xns' : 'Roo.bootstrap',
222 '|xns' : 'Roo.bootstrap',
228 '|xns' : 'Roo.bootstrap',
232 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
236 '|xns' : 'Roo.bootstrap'
245 render : function (_self)
247 _this.row_pwd_label = _self;
251 '|xns' : 'Roo.bootstrap',
257 '|xns' : 'Roo.bootstrap',
261 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
266 '|xns' : 'Roo.bootstrap'
275 render : function (_self)
277 _this.row_pwd_label = _self;
281 '|xns' : 'Roo.bootstrap',
287 '|xns' : 'Roo.bootstrap',
292 displayField : 'value',
294 fieldLabel : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
295 hiddenName : 'status',
297 name : 'status_name',
298 triggerAction : 'all',
301 select : function (combo, record, index)
307 '|xns' : 'Roo.bootstrap',
309 xtype : 'SimpleStore',
314 fields : [ 'code', 'value' ],
326 '|xns' : 'Roo.bootstrap',
332 '|xns' : 'Roo.bootstrap',
336 inputType : 'hidden',
339 '|xns' : 'Roo.bootstrap'
343 inputType : 'hidden',
344 name : 'authorized_key',
346 '|xns' : 'Roo.bootstrap'
357 render : function (_self)
359 _this.error_row = this;
361 this.el.setVisibilityMode(Roo.Element.DISPLAY);
367 '|xns' : 'Roo.bootstrap',
373 '|xns' : 'Roo.bootstrap',
377 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
379 render : function (_self)
381 _this.text_el = _self;
385 '|xns' : 'Roo.bootstrap'
395 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);