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 'b945ed1d61d8edbe16a1192ad6d2fd58' :"Please enter a memorable password for logging into your application",
14 'f6039d44b29456b20f8f373155ae4973' :"Username",
15 '51eea3dc60ae3a0b1bb8188bc6337dc2' :"enter password",
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'
168 url : baseURL + '/Core/VerifyAccess',
170 actioncomplete : function (_self, action)
172 if (action.type == 'setdata') {
174 _this.form.findField('password').focus();
178 if (action.type == 'load') {
182 if (action.type =='submit') {
186 Roo.get(document.body).mask('Start your Application');
188 setTimeout(function() {
189 window.location.href = baseURL;
196 actionfailed : function (_self, action)
198 _this.dialog.el.unmask();
199 Roo.log("action failed");
202 if(!action.result.errorMsg){
203 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
206 var msg = action.result.errorMsg;
208 if(msg.length >= 200){
209 msg = msg.substring(0,199) + '...'
212 Roo.bootstrap.MessageBox.alert("Error", msg);
214 render : function (_self,e)
221 '|xns' : 'Roo.bootstrap',
226 '|xns' : 'Roo.bootstrap',
232 '|xns' : 'Roo.bootstrap',
236 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
241 '|xns' : 'Roo.bootstrap'
250 render : function (_self)
252 _this.row_pwd_label = _self;
256 '|xns' : 'Roo.bootstrap',
262 '|xns' : 'Roo.bootstrap',
265 xtype : 'FieldLabel',
266 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
268 '|xns' : 'Roo.bootstrap'
277 render : function (_self)
279 _this.row_pwd1 = _self;
283 '|xns' : 'Roo.bootstrap',
289 '|xns' : 'Roo.bootstrap',
292 xtype : 'SecurePass',
294 inputType : 'password',
297 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
299 '|xns' : 'Roo.bootstrap'
308 render : function (_self)
310 _this.row_pwd2 = _self;
314 '|xns' : 'Roo.bootstrap',
320 '|xns' : 'Roo.bootstrap',
325 inputType : 'password',
326 invalidText : 'The passwords you entered do not match',
328 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
329 validator : function(v){
331 if(_this.form.findField('password').getValue() == v) {
339 '|xns' : 'Roo.bootstrap'
348 '|xns' : 'Roo.bootstrap',
354 '|xns' : 'Roo.bootstrap',
358 inputType : 'hidden',
361 '|xns' : 'Roo.bootstrap'
365 inputType : 'hidden',
366 name : 'authorized_key',
368 '|xns' : 'Roo.bootstrap'
379 render : function (_self)
381 _this.error_row = this;
383 this.el.setVisibilityMode(Roo.Element.DISPLAY);
389 '|xns' : 'Roo.bootstrap',
395 '|xns' : 'Roo.bootstrap',
399 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
401 render : function (_self)
403 _this.text_el = _self;
407 '|xns' : 'Roo.bootstrap'
417 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);