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 'dfb790522fdea3859af206d32916fe77' :"User Agent",
15 'd71940f24ee38ee09f6e06b908480bcf' :"Resend email",
16 '14cf5e829f5cb6fbf8cb54f7c5ff4ca9' :"Start the application process "
22 show : function(data, cb)
30 this.dialog.show(this.data._el);
33 this.form.setValues(data);
34 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
42 this.dialog = Roo.factory({
45 cls : 'enable-overflow',
46 title : _this._strings['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */,
48 show : function (_self)
50 var path = window.location.pathname.split('/');
52 var authorized_key = path.pop();
57 url: baseURL + '/Core/VerifyAccess',
62 authorized_key : authorized_key,
65 success : function(res) {
66 _this.form.setValues(res.data);
69 failure: function(res) {
73 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
81 '|xns' : 'Roo.bootstrap',
85 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
88 click : function (_self, e)
90 if(!_this.form.isValid()){
94 var p1 = _this.form.findField('password').getValue();
95 var p2 = _this.form.findField('password1').getValue();
98 _this.form.findField('password1').markInvalid('Password do not match');
102 _this.dialog.el.mask('Sending...');
103 _this.form.doAction('submit');
106 render : function (_self)
108 _this.btn_ok = _self;
112 '|xns' : 'Roo.bootstrap'
116 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
119 click : function (_self, e)
121 var path = window.location.pathname.split('/');
123 var verify_key = path.pop();
128 url: baseURL + '/Roo/Coba_application_signup',
134 success : function(res) {
135 var msg = "We have re-sent you an invitation via email." +
137 "Please check your inbox for the final registration step." +
139 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
141 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
143 failure: function(res) {
144 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
148 render : function (_self)
150 _this.btn_resend = _self;
151 this.el.setVisibilityMode(Roo.Element.DISPLAY);
156 '|xns' : 'Roo.bootstrap'
165 url : baseURL + '/Core/VerifyAccess',
167 actioncomplete : function (_self, action)
169 if (action.type == 'setdata') {
173 if (action.type == 'load') {
177 if (action.type =='submit') {
181 Roo.get(document.body).mask('Start your Application');
183 setTimeout(function() {
184 window.location.href = baseURL;
191 actionfailed : function (_self, action)
193 _this.dialog.el.unmask();
194 Roo.log("action failed");
197 if(!action.result.errorMsg){
198 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
201 var msg = action.result.errorMsg;
203 if(msg.length >= 200){
204 msg = msg.substring(0,199) + '...'
207 Roo.bootstrap.MessageBox.alert("Error", msg);
209 render : function (_self,e)
216 '|xns' : 'Roo.bootstrap',
221 '|xns' : 'Roo.bootstrap',
227 '|xns' : 'Roo.bootstrap',
231 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
235 '|xns' : 'Roo.bootstrap'
244 render : function (_self)
246 _this.row_pwd_label = _self;
250 '|xns' : 'Roo.bootstrap',
256 '|xns' : 'Roo.bootstrap',
260 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
265 '|xns' : 'Roo.bootstrap'
274 render : function (_self)
276 _this.row_pwd_label = _self;
280 '|xns' : 'Roo.bootstrap',
286 '|xns' : 'Roo.bootstrap',
290 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
295 '|xns' : 'Roo.bootstrap'
304 '|xns' : 'Roo.bootstrap',
310 '|xns' : 'Roo.bootstrap',
314 inputType : 'hidden',
317 '|xns' : 'Roo.bootstrap'
321 inputType : 'hidden',
322 name : 'authorized_key',
324 '|xns' : 'Roo.bootstrap'
335 render : function (_self)
337 _this.error_row = this;
339 this.el.setVisibilityMode(Roo.Element.DISPLAY);
345 '|xns' : 'Roo.bootstrap',
351 '|xns' : 'Roo.bootstrap',
355 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
357 render : function (_self)
359 _this.text_el = _self;
363 '|xns' : 'Roo.bootstrap'
373 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);