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',
48 title : _this._strings['07ae22a49223522664766d12c37a4eeb'] /* Activate Your account */,
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',
67 authorized_key : authorized_key,
70 success : function(res) {
73 _this.form.setValues(res.data);
76 failure: function(res) {
80 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
88 '|xns' : 'Roo.bootstrap',
92 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
95 click : function (_self, e)
97 if(!_this.form.isValid()){
101 var p1 = _this.form.findField('password').getValue();
102 var p2 = _this.form.findField('password1').getValue();
105 _this.form.findField('password1').markInvalid('Password do not match');
109 _this.dialog.el.mask('Sending...');
110 _this.form.doAction('submit');
113 render : function (_self)
115 _this.btn_ok = _self;
119 '|xns' : 'Roo.bootstrap'
123 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
126 click : function (_self, e)
128 var path = window.location.pathname.split('/');
130 var verify_key = path.pop();
135 url: baseURL + '/Roo/Coba_application_signup',
141 success : function(res) {
142 var msg = "We have re-sent you an invitation via email." +
144 "Please check your inbox for the final registration step." +
146 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
148 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
150 failure: function(res) {
151 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
155 render : function (_self)
157 _this.btn_resend = _self;
158 this.el.setVisibilityMode(Roo.Element.DISPLAY);
163 '|xns' : 'Roo.bootstrap'
171 url : baseURL + '/Register/Confirm',
173 actioncomplete : function (_self, action)
175 if (action.type == 'setdata') {
177 _this.form.findField('password').focus();
181 if (action.type == 'load') {
185 if (action.type =='submit') {
189 Roo.get(document.body).mask('Start your Application');
191 setTimeout(function() {
192 window.location.href = baseURL;
199 actionfailed : function (_self, action)
201 _this.dialog.el.unmask();
202 Roo.log("action failed");
205 if(!action.result.errorMsg){
206 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
209 var msg = action.result.errorMsg;
211 if(msg.length >= 200){
212 msg = msg.substring(0,199) + '...'
215 Roo.bootstrap.MessageBox.alert("Error", msg);
217 render : function (_self,e)
224 '|xns' : 'Roo.bootstrap',
229 '|xns' : 'Roo.bootstrap',
235 '|xns' : 'Roo.bootstrap',
239 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
244 '|xns' : 'Roo.bootstrap'
253 render : function (_self)
255 _this.row_pwd_label = _self;
259 '|xns' : 'Roo.bootstrap',
265 '|xns' : 'Roo.bootstrap',
268 xtype : 'FieldLabel',
269 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
271 '|xns' : 'Roo.bootstrap'
280 render : function (_self)
282 _this.row_pwd1 = _self;
286 '|xns' : 'Roo.bootstrap',
292 '|xns' : 'Roo.bootstrap',
295 xtype : 'SecurePass',
297 inputType : 'password',
300 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
302 '|xns' : 'Roo.bootstrap'
311 render : function (_self)
313 _this.row_pwd2 = _self;
317 '|xns' : 'Roo.bootstrap',
323 '|xns' : 'Roo.bootstrap',
328 inputType : 'password',
329 invalidText : 'The passwords you entered do not match',
331 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
332 validator : function(v){
334 if(_this.form.findField('password').getValue() == v) {
342 '|xns' : 'Roo.bootstrap'
351 '|xns' : 'Roo.bootstrap',
357 '|xns' : 'Roo.bootstrap',
361 inputType : 'hidden',
364 '|xns' : 'Roo.bootstrap'
368 inputType : 'hidden',
371 '|xns' : 'Roo.bootstrap'
382 render : function (_self)
384 _this.error_row = this;
386 this.el.setVisibilityMode(Roo.Element.DISPLAY);
392 '|xns' : 'Roo.bootstrap',
398 '|xns' : 'Roo.bootstrap',
402 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
404 render : function (_self)
406 _this.text_el = _self;
410 '|xns' : 'Roo.bootstrap'
420 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);