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 'ee7ad62ad69b9ab5f25d273e4e0a1736' :"Your 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 render : function (_self)
54 show : function (_self)
56 var path = window.location.pathname.split('/');
58 var authorized_key = path.pop();
63 url: baseURL + '/Core/VerifyAccess',
68 authorized_key : authorized_key,
71 success : function(res) {
74 _this.form.setValues(res.data);
77 failure: function(res) {
81 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
89 '|xns' : 'Roo.bootstrap',
93 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
96 click : function (_self, e)
98 if(!_this.form.isValid()){
102 var p1 = _this.form.findField('password').getValue();
103 var p2 = _this.form.findField('password1').getValue();
106 _this.form.findField('password1').markInvalid('Password do not match');
110 _this.dialog.el.mask('Sending...');
111 _this.form.doAction('submit');
114 render : function (_self)
116 _this.btn_ok = _self;
120 '|xns' : 'Roo.bootstrap'
124 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
127 click : function (_self, e)
129 var path = window.location.pathname.split('/');
131 var verify_key = path.pop();
136 url: baseURL + '/Roo/Coba_application_signup',
142 success : function(res) {
143 var msg = "We have re-sent you an invitation via email." +
145 "Please check your inbox for the final registration step." +
147 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
149 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
151 failure: function(res) {
152 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
156 render : function (_self)
158 _this.btn_resend = _self;
159 this.el.setVisibilityMode(Roo.Element.DISPLAY);
164 '|xns' : 'Roo.bootstrap'
172 url : baseURL + '/Register/Confirm',
174 actioncomplete : function (_self, action)
176 if (action.type == 'setdata') {
178 _this.form.findField('password').focus();
182 if (action.type == 'load') {
186 if (action.type =='submit') {
190 Roo.get(document.body).mask('Start your Application');
192 setTimeout(function() {
193 window.location.href = baseURL;
200 actionfailed : function (_self, action)
202 _this.dialog.el.unmask();
203 Roo.log("action failed");
206 if(!action.result.errorMsg){
207 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
210 var msg = action.result.errorMsg;
212 if(msg.length >= 200){
213 msg = msg.substring(0,199) + '...'
216 Roo.bootstrap.MessageBox.alert("Error", msg);
218 render : function (_self,e)
225 '|xns' : 'Roo.bootstrap',
230 '|xns' : 'Roo.bootstrap',
236 '|xns' : 'Roo.bootstrap',
240 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
245 '|xns' : 'Roo.bootstrap'
254 render : function (_self)
256 _this.row_pwd_label = _self;
260 '|xns' : 'Roo.bootstrap',
266 '|xns' : 'Roo.bootstrap',
269 xtype : 'FieldLabel',
270 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
272 '|xns' : 'Roo.bootstrap'
281 render : function (_self)
283 _this.row_pwd1 = _self;
287 '|xns' : 'Roo.bootstrap',
293 '|xns' : 'Roo.bootstrap',
296 xtype : 'SecurePass',
298 inputType : 'password',
301 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
303 '|xns' : 'Roo.bootstrap'
312 render : function (_self)
314 _this.row_pwd2 = _self;
318 '|xns' : 'Roo.bootstrap',
324 '|xns' : 'Roo.bootstrap',
329 inputType : 'password',
330 invalidText : 'The passwords you entered do not match',
332 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
333 validator : function(v){
335 if(_this.form.findField('password').getValue() == v) {
343 '|xns' : 'Roo.bootstrap'
352 '|xns' : 'Roo.bootstrap',
358 '|xns' : 'Roo.bootstrap',
362 inputType : 'hidden',
365 '|xns' : 'Roo.bootstrap'
369 inputType : 'hidden',
372 '|xns' : 'Roo.bootstrap'
383 render : function (_self)
385 _this.error_row = this;
387 this.el.setVisibilityMode(Roo.Element.DISPLAY);
393 '|xns' : 'Roo.bootstrap',
399 '|xns' : 'Roo.bootstrap',
403 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
405 render : function (_self)
407 _this.text_el = _self;
411 '|xns' : 'Roo.bootstrap'
421 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);