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) {
68 _this.form.setValues(res.data);
71 failure: function(res) {
75 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
83 '|xns' : 'Roo.bootstrap',
87 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
90 click : function (_self, e)
92 if(!_this.form.isValid()){
96 var p1 = _this.form.findField('password').getValue();
97 var p2 = _this.form.findField('password1').getValue();
100 _this.form.findField('password1').markInvalid('Password do not match');
104 _this.dialog.el.mask('Sending...');
105 _this.form.doAction('submit');
108 render : function (_self)
110 _this.btn_ok = _self;
114 '|xns' : 'Roo.bootstrap'
118 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
121 click : function (_self, e)
123 var path = window.location.pathname.split('/');
125 var verify_key = path.pop();
130 url: baseURL + '/Roo/Coba_application_signup',
136 success : function(res) {
137 var msg = "We have re-sent you an invitation via email." +
139 "Please check your inbox for the final registration step." +
141 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
143 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
145 failure: function(res) {
146 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
150 render : function (_self)
152 _this.btn_resend = _self;
153 this.el.setVisibilityMode(Roo.Element.DISPLAY);
158 '|xns' : 'Roo.bootstrap'
167 url : baseURL + '/Core/VerifyAccess',
169 actioncomplete : function (_self, action)
171 if (action.type == 'setdata') {
173 _this.form.findField('password').focus();
177 if (action.type == 'load') {
181 if (action.type =='submit') {
185 Roo.get(document.body).mask('Start your Application');
187 setTimeout(function() {
188 window.location.href = baseURL;
195 actionfailed : function (_self, action)
197 _this.dialog.el.unmask();
198 Roo.log("action failed");
201 if(!action.result.errorMsg){
202 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
205 var msg = action.result.errorMsg;
207 if(msg.length >= 200){
208 msg = msg.substring(0,199) + '...'
211 Roo.bootstrap.MessageBox.alert("Error", msg);
213 render : function (_self,e)
220 '|xns' : 'Roo.bootstrap',
225 '|xns' : 'Roo.bootstrap',
231 '|xns' : 'Roo.bootstrap',
235 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
239 '|xns' : 'Roo.bootstrap'
248 render : function (_self)
250 _this.row_pwd_label = _self;
254 '|xns' : 'Roo.bootstrap',
260 '|xns' : 'Roo.bootstrap',
264 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
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.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);