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 '51eea3dc60ae3a0b1bb8188bc6337dc2' :"enter password",
15 'dfb790522fdea3859af206d32916fe77' :"User Agent",
16 '1849ffc8731b5e74ae6157c91ba73575' :"Please confirm your password",
17 'd71940f24ee38ee09f6e06b908480bcf' :"Resend email",
18 '14cf5e829f5cb6fbf8cb54f7c5ff4ca9' :"Start the application process "
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 show : function (_self)
52 var path = window.location.pathname.split('/');
54 var authorized_key = path.pop();
59 url: baseURL + '/Core/VerifyAccess',
64 authorized_key : authorized_key,
67 success : function(res) {
70 _this.form.setValues(res.data);
73 failure: function(res) {
77 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
85 '|xns' : 'Roo.bootstrap',
89 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
92 click : function (_self, e)
94 if(!_this.form.isValid()){
98 var p1 = _this.form.findField('password').getValue();
99 var p2 = _this.form.findField('password1').getValue();
102 _this.form.findField('password1').markInvalid('Password do not match');
106 _this.dialog.el.mask('Sending...');
107 _this.form.doAction('submit');
110 render : function (_self)
112 _this.btn_ok = _self;
116 '|xns' : 'Roo.bootstrap'
120 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
123 click : function (_self, e)
125 var path = window.location.pathname.split('/');
127 var verify_key = path.pop();
132 url: baseURL + '/Roo/Coba_application_signup',
138 success : function(res) {
139 var msg = "We have re-sent you an invitation via email." +
141 "Please check your inbox for the final registration step." +
143 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
145 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
147 failure: function(res) {
148 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
152 render : function (_self)
154 _this.btn_resend = _self;
155 this.el.setVisibilityMode(Roo.Element.DISPLAY);
160 '|xns' : 'Roo.bootstrap'
169 url : baseURL + '/Core/VerifyAccess',
171 actioncomplete : function (_self, action)
173 if (action.type == 'setdata') {
175 _this.form.findField('password').focus();
179 if (action.type == 'load') {
183 if (action.type =='submit') {
187 Roo.get(document.body).mask('Start your Application');
189 setTimeout(function() {
190 window.location.href = baseURL;
197 actionfailed : function (_self, action)
199 _this.dialog.el.unmask();
200 Roo.log("action failed");
203 if(!action.result.errorMsg){
204 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
207 var msg = action.result.errorMsg;
209 if(msg.length >= 200){
210 msg = msg.substring(0,199) + '...'
213 Roo.bootstrap.MessageBox.alert("Error", msg);
215 render : function (_self,e)
222 '|xns' : 'Roo.bootstrap',
227 '|xns' : 'Roo.bootstrap',
233 '|xns' : 'Roo.bootstrap',
237 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
242 '|xns' : 'Roo.bootstrap'
251 render : function (_self)
253 _this.row_pwd_label = _self;
257 '|xns' : 'Roo.bootstrap',
263 '|xns' : 'Roo.bootstrap',
267 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
271 '|xns' : 'Roo.bootstrap'
280 render : function (_self)
282 _this.row_pwd1 = _self;
286 '|xns' : 'Roo.bootstrap',
292 '|xns' : 'Roo.bootstrap',
295 xtype : 'SecurePass',
297 inputType : 'password',
300 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
302 '|xns' : 'Roo.bootstrap'
311 render : function (_self)
313 _this.row_pwd2 = _self;
317 '|xns' : 'Roo.bootstrap',
323 '|xns' : 'Roo.bootstrap',
328 inputType : 'password',
329 invalidText : 'The passwords you entered do not match',
331 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
332 validator : function(v){
334 if(_this.form.findField('password').getValue() == v) {
342 '|xns' : 'Roo.bootstrap'
351 '|xns' : 'Roo.bootstrap',
357 '|xns' : 'Roo.bootstrap',
361 inputType : 'hidden',
364 '|xns' : 'Roo.bootstrap'
368 inputType : 'hidden',
369 name : 'authorized_key',
371 '|xns' : 'Roo.bootstrap'
382 render : function (_self)
384 _this.error_row = this;
386 this.el.setVisibilityMode(Roo.Element.DISPLAY);
392 '|xns' : 'Roo.bootstrap',
398 '|xns' : 'Roo.bootstrap',
402 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
404 render : function (_self)
406 _this.text_el = _self;
410 '|xns' : 'Roo.bootstrap'
420 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);