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)
58 var path = window.location.pathname.split('/');
60 var authorized_key = path.pop();
65 url: baseURL + '/Core/VerifyAccess',
70 authorized_key : authorized_key,
73 success : function(res) {
77 _this.form.setValues(res.data);
80 failure: function(res) {
84 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
92 '|xns' : 'Roo.bootstrap',
96 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
99 click : function (_self, e)
101 if(!_this.form.isValid()){
105 var p1 = _this.form.findField('password').getValue();
106 var p2 = _this.form.findField('password1').getValue();
109 _this.form.findField('password1').markInvalid('Password do not match');
113 _this.dialog.el.mask('Sending...');
114 _this.form.doAction('submit');
117 render : function (_self)
119 _this.btn_ok = _self;
123 '|xns' : 'Roo.bootstrap'
127 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
130 click : function (_self, e)
132 var path = window.location.pathname.split('/');
134 var verify_key = path.pop();
139 url: baseURL + '/Roo/Coba_application_signup',
145 success : function(res) {
146 var msg = "We have re-sent you an invitation via email." +
148 "Please check your inbox for the final registration step." +
150 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
152 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
154 failure: function(res) {
155 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
159 render : function (_self)
161 _this.btn_resend = _self;
162 this.el.setVisibilityMode(Roo.Element.DISPLAY);
167 '|xns' : 'Roo.bootstrap'
175 url : baseURL + '/Register/Confirm',
177 actioncomplete : function (_self, action)
179 if (action.type == 'setdata') {
181 _this.form.findField('password').focus();
185 if (action.type == 'load') {
189 if (action.type =='submit') {
193 Roo.get(document.body).mask('Start your Application');
195 setTimeout(function() {
196 window.location.href = baseURL;
203 actionfailed : function (_self, action)
205 _this.dialog.el.unmask();
206 Roo.log("action failed");
209 if(!action.result.errorMsg){
210 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
213 var msg = action.result.errorMsg;
215 if(msg.length >= 200){
216 msg = msg.substring(0,199) + '...'
219 Roo.bootstrap.MessageBox.alert("Error", msg);
221 render : function (_self,e)
228 '|xns' : 'Roo.bootstrap',
233 '|xns' : 'Roo.bootstrap',
239 '|xns' : 'Roo.bootstrap',
243 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
248 '|xns' : 'Roo.bootstrap'
257 render : function (_self)
259 _this.row_pwd_label = _self;
263 '|xns' : 'Roo.bootstrap',
269 '|xns' : 'Roo.bootstrap',
272 xtype : 'FieldLabel',
273 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
275 '|xns' : 'Roo.bootstrap'
284 render : function (_self)
286 _this.row_pwd1 = _self;
290 '|xns' : 'Roo.bootstrap',
296 '|xns' : 'Roo.bootstrap',
299 xtype : 'SecurePass',
301 inputType : 'password',
304 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
306 '|xns' : 'Roo.bootstrap'
315 render : function (_self)
317 _this.row_pwd2 = _self;
321 '|xns' : 'Roo.bootstrap',
327 '|xns' : 'Roo.bootstrap',
332 inputType : 'password',
333 invalidText : 'The passwords you entered do not match',
335 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
336 validator : function(v){
338 if(_this.form.findField('password').getValue() == v) {
346 '|xns' : 'Roo.bootstrap'
355 '|xns' : 'Roo.bootstrap',
361 '|xns' : 'Roo.bootstrap',
365 inputType : 'hidden',
368 '|xns' : 'Roo.bootstrap'
372 inputType : 'hidden',
375 '|xns' : 'Roo.bootstrap'
386 render : function (_self)
388 _this.error_row = this;
390 this.el.setVisibilityMode(Roo.Element.DISPLAY);
396 '|xns' : 'Roo.bootstrap',
402 '|xns' : 'Roo.bootstrap',
406 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
408 render : function (_self)
410 _this.text_el = _self;
414 '|xns' : 'Roo.bootstrap'
424 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);