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 '1849ffc8731b5e74ae6157c91ba73575' :"Please confirm your password",
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) {
69 _this.form.setValues(res.data);
72 failure: function(res) {
76 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
84 '|xns' : 'Roo.bootstrap',
88 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
91 click : function (_self, e)
93 if(!_this.form.isValid()){
97 var p1 = _this.form.findField('password').getValue();
98 var p2 = _this.form.findField('password1').getValue();
101 _this.form.findField('password1').markInvalid('Password do not match');
105 _this.dialog.el.mask('Sending...');
106 _this.form.doAction('submit');
109 render : function (_self)
111 _this.btn_ok = _self;
115 '|xns' : 'Roo.bootstrap'
119 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
122 click : function (_self, e)
124 var path = window.location.pathname.split('/');
126 var verify_key = path.pop();
131 url: baseURL + '/Roo/Coba_application_signup',
137 success : function(res) {
138 var msg = "We have re-sent you an invitation via email." +
140 "Please check your inbox for the final registration step." +
142 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
144 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
146 failure: function(res) {
147 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
151 render : function (_self)
153 _this.btn_resend = _self;
154 this.el.setVisibilityMode(Roo.Element.DISPLAY);
159 '|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 */,
240 '|xns' : 'Roo.bootstrap'
249 render : function (_self)
251 _this.row_pwd_label = _self;
255 '|xns' : 'Roo.bootstrap',
261 '|xns' : 'Roo.bootstrap',
267 '|xns' : 'Roo.bootstrap'
276 render : function (_self)
278 _this.row_pwd1 = _self;
282 '|xns' : 'Roo.bootstrap',
288 '|xns' : 'Roo.bootstrap',
291 xtype : 'SecurePass',
293 inputType : 'password',
296 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
298 '|xns' : 'Roo.bootstrap'
307 render : function (_self)
309 _this.row_pwd2 = _self;
313 '|xns' : 'Roo.bootstrap',
319 '|xns' : 'Roo.bootstrap',
324 inputType : 'password',
325 invalidText : 'The passwords you entered do not match',
327 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
328 validator : function(v){
330 if(_this.form.findField('password').getValue() == v) {
338 '|xns' : 'Roo.bootstrap'
347 '|xns' : 'Roo.bootstrap',
353 '|xns' : 'Roo.bootstrap',
357 inputType : 'hidden',
360 '|xns' : 'Roo.bootstrap'
364 inputType : 'hidden',
365 name : 'authorized_key',
367 '|xns' : 'Roo.bootstrap'
378 render : function (_self)
380 _this.error_row = this;
382 this.el.setVisibilityMode(Roo.Element.DISPLAY);
388 '|xns' : 'Roo.bootstrap',
394 '|xns' : 'Roo.bootstrap',
398 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
400 render : function (_self)
402 _this.text_el = _self;
406 '|xns' : 'Roo.bootstrap'
416 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);