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);
75 failure: function(res) {
77 switch(res.errorMsg) {
78 case 'already_registered':
80 Coba.Dialog.Login.show({});
84 show_err('This email has been registered for multiple account. Please contact to your distributor to synchronize them',
90 show_err('The link you clicked on was broken, on not complete, please copy and paste the full URL from the email you received',
96 show_err('This activation link is already expired, please click Resend email to get the updated activated link',
103 show_err(res.errorMsg,'Error', false);
114 '|xns' : 'Roo.bootstrap',
118 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
121 click : function (_self, e)
123 if(!_this.form.isValid()){
127 var p1 = _this.form.findField('password').getValue();
128 var p2 = _this.form.findField('password1').getValue();
131 _this.form.findField('password1').markInvalid('Password do not match');
135 _this.dialog.el.mask('Sending...');
136 _this.form.doAction('submit');
139 render : function (_self)
141 _this.btn_ok = _self;
145 '|xns' : 'Roo.bootstrap'
149 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
152 click : function (_self, e)
154 var path = window.location.pathname.split('/');
156 var verify_key = path.pop();
161 url: baseURL + '/Roo/Coba_application_signup',
167 success : function(res) {
168 var msg = "We have re-sent you an invitation via email." +
170 "Please check your inbox for the final registration step." +
172 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
174 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
176 failure: function(res) {
177 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
181 render : function (_self)
183 _this.btn_resend = _self;
184 this.el.setVisibilityMode(Roo.Element.DISPLAY);
189 '|xns' : 'Roo.bootstrap'
197 url : baseURL + '/Register/Confirm',
199 actioncomplete : function (_self, action)
201 if (action.type == 'setdata') {
203 _this.form.findField('password').focus();
207 if (action.type == 'load') {
211 if (action.type =='submit') {
215 Roo.get(document.body).mask('Start your Application');
217 setTimeout(function() {
218 window.location.href = baseURL;
225 actionfailed : function (_self, action)
227 _this.dialog.el.unmask();
228 Roo.log("action failed");
231 if(!action.result.errorMsg){
232 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
235 var msg = action.result.errorMsg;
237 if(msg.length >= 200){
238 msg = msg.substring(0,199) + '...'
241 Roo.bootstrap.MessageBox.alert("Error", msg);
243 render : function (_self,e)
250 '|xns' : 'Roo.bootstrap',
255 '|xns' : 'Roo.bootstrap',
261 '|xns' : 'Roo.bootstrap',
265 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
270 '|xns' : 'Roo.bootstrap'
279 render : function (_self)
281 _this.row_pwd_label = _self;
285 '|xns' : 'Roo.bootstrap',
291 '|xns' : 'Roo.bootstrap',
294 xtype : 'FieldLabel',
295 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
297 '|xns' : 'Roo.bootstrap'
306 render : function (_self)
308 _this.row_pwd1 = _self;
312 '|xns' : 'Roo.bootstrap',
318 '|xns' : 'Roo.bootstrap',
321 xtype : 'SecurePass',
323 inputType : 'password',
326 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
328 '|xns' : 'Roo.bootstrap'
337 render : function (_self)
339 _this.row_pwd2 = _self;
343 '|xns' : 'Roo.bootstrap',
349 '|xns' : 'Roo.bootstrap',
354 inputType : 'password',
355 invalidText : 'The passwords you entered do not match',
357 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
358 validator : function(v){
360 if(_this.form.findField('password').getValue() == v) {
368 '|xns' : 'Roo.bootstrap'
377 '|xns' : 'Roo.bootstrap',
383 '|xns' : 'Roo.bootstrap',
387 inputType : 'hidden',
390 '|xns' : 'Roo.bootstrap'
394 inputType : 'hidden',
397 '|xns' : 'Roo.bootstrap'
408 render : function (_self)
410 _this.error_row = this;
412 this.el.setVisibilityMode(Roo.Element.DISPLAY);
418 '|xns' : 'Roo.bootstrap',
424 '|xns' : 'Roo.bootstrap',
428 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
430 render : function (_self)
432 _this.text_el = _self;
436 '|xns' : 'Roo.bootstrap'
446 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);