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 'd41d8cd98f00b204e9800998ecf8427e' :"",
12 'b945ed1d61d8edbe16a1192ad6d2fd58' :"Please enter a memorable password for logging into your application",
13 '07ae22a49223522664766d12c37a4eeb' :"Activate Your account",
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',
49 title : _this._strings['07ae22a49223522664766d12c37a4eeb'] /* Activate Your account */,
51 render : function (_self)
55 show : function (_self)
57 var path = window.location.pathname.split('/');
59 var authorized_key = path.pop();
64 url: baseURL + '/Core/VerifyAccess',
68 authorized_key : authorized_key,
71 success : function(res) {
72 _this.form.setValues(res.data);
79 '|xns' : 'Roo.bootstrap',
83 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
86 click : function (_self, e)
88 if(!_this.form.isValid()){
92 var p1 = _this.form.findField('password').getValue();
93 var p2 = _this.form.findField('password1').getValue();
96 _this.form.findField('password1').markInvalid('Password do not match');
100 _this.dialog.el.mask('Sending...');
101 _this.form.doAction('submit');
104 render : function (_self)
106 _this.btn_ok = _self;
110 '|xns' : 'Roo.bootstrap'
114 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
117 click : function (_self, e)
119 var path = window.location.pathname.split('/');
121 var verify_key = path.pop();
126 url: baseURL + '/Roo/Coba_application_signup',
132 success : function(res) {
133 var msg = "We have re-sent you an invitation via email." +
135 "Please check your inbox for the final registration step." +
137 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
139 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
141 failure: function(res) {
142 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
146 render : function (_self)
148 _this.btn_resend = _self;
149 this.el.setVisibilityMode(Roo.Element.DISPLAY);
154 '|xns' : 'Roo.bootstrap'
162 url : baseURL + '/Register/Confirm',
164 actioncomplete : function (_self, action)
166 if (action.type == 'setdata') {
168 _this.form.findField('password').focus();
172 if (action.type == 'load') {
176 if (action.type =='submit') {
180 Roo.get(document.body).mask('Start your Application');
182 setTimeout(function() {
183 window.location.href = baseURL;
190 actionfailed : function (_self, action)
192 _this.dialog.el.unmask();
193 Roo.log("action failed");
196 if(!action.result.errorMsg){
197 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
200 var msg = action.result.errorMsg;
202 if(msg.length >= 200){
203 msg = msg.substring(0,199) + '...'
206 Roo.bootstrap.MessageBox.alert("Error", msg);
208 render : function (_self,e)
215 '|xns' : 'Roo.bootstrap',
220 '|xns' : 'Roo.bootstrap',
226 '|xns' : 'Roo.bootstrap',
230 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
235 '|xns' : 'Roo.bootstrap'
244 render : function (_self)
246 _this.row_pwd_label = _self;
250 '|xns' : 'Roo.bootstrap',
256 '|xns' : 'Roo.bootstrap',
259 xtype : 'FieldLabel',
260 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
262 '|xns' : 'Roo.bootstrap'
271 render : function (_self)
273 _this.row_pwd1 = _self;
277 '|xns' : 'Roo.bootstrap',
283 '|xns' : 'Roo.bootstrap',
286 xtype : 'SecurePass',
288 inputType : 'password',
291 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
293 '|xns' : 'Roo.bootstrap'
302 render : function (_self)
304 _this.row_pwd2 = _self;
308 '|xns' : 'Roo.bootstrap',
314 '|xns' : 'Roo.bootstrap',
319 inputType : 'password',
320 invalidText : 'The passwords you entered do not match',
322 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
323 validator : function(v){
325 if(_this.form.findField('password').getValue() == v) {
333 '|xns' : 'Roo.bootstrap'
342 '|xns' : 'Roo.bootstrap',
348 '|xns' : 'Roo.bootstrap',
352 inputType : 'hidden',
355 '|xns' : 'Roo.bootstrap'
359 inputType : 'hidden',
362 '|xns' : 'Roo.bootstrap'
373 render : function (_self)
375 _this.error_row = this;
377 this.el.setVisibilityMode(Roo.Element.DISPLAY);
383 '|xns' : 'Roo.bootstrap',
389 '|xns' : 'Roo.bootstrap',
393 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
395 render : function (_self)
397 _this.text_el = _self;
401 '|xns' : 'Roo.bootstrap'
411 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);