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 verify_key = path.pop();
63 var show_err = function(msg,title,show_resend_btn) {
66 _this.error_row.el.show();
67 _this.text_el.el.dom.innerHTML = msg;
68 _this.modal.setTitle(title);
70 _this.btn_resend.show();
75 url: baseURL + '/Register/Confirm',
79 verify_key : verify_key,
82 success : function(res) {
83 _this.form.setValues(res.data);
86 failure: function(res) {
88 switch(res.errorMsg) {
89 case 'already_registered':
91 Coba.Dialog.Login.show({});
95 show_err('This email has been registered for multiple account. Please contact to your distributor to synchronize them',
101 show_err('The link you clicked on was broken, on not complete, please copy and paste the full URL from the email you received',
107 show_err('This activation link is already expired, please click Resend email to get the updated activated link',
114 show_err(res.errorMsg,'Error', false);
125 '|xns' : 'Roo.bootstrap',
129 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
132 click : function (_self, e)
134 if(!_this.form.isValid()){
138 var p1 = _this.form.findField('password').getValue();
139 var p2 = _this.form.findField('password1').getValue();
142 _this.form.findField('password1').markInvalid('Password do not match');
146 _this.dialog.el.mask('Sending...');
147 _this.form.doAction('submit');
150 render : function (_self)
152 _this.btn_ok = _self;
156 '|xns' : 'Roo.bootstrap'
160 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
163 click : function (_self, e)
165 var path = window.location.pathname.split('/');
167 var verify_key = path.pop();
172 url: baseURL + '/Roo/Coba_application_signup',
178 success : function(res) {
179 var msg = "We have re-sent you an invitation via email." +
181 "Please check your inbox for the final registration step." +
183 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
185 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
187 failure: function(res) {
188 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
192 render : function (_self)
194 _this.btn_resend = _self;
195 this.el.setVisibilityMode(Roo.Element.DISPLAY);
200 '|xns' : 'Roo.bootstrap'
208 url : baseURL + '/Register/Confirm',
210 actioncomplete : function (_self, action)
212 if (action.type == 'setdata') {
214 _this.form.findField('password').focus();
218 if (action.type == 'load') {
222 if (action.type =='submit') {
226 Roo.get(document.body).mask('Start your Application');
228 setTimeout(function() {
229 window.location.href = baseURL;
236 actionfailed : function (_self, action)
238 _this.dialog.el.unmask();
239 Roo.log("action failed");
242 if(!action.result.errorMsg){
243 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
246 var msg = action.result.errorMsg;
248 if(msg.length >= 200){
249 msg = msg.substring(0,199) + '...'
252 Roo.bootstrap.MessageBox.alert("Error", msg);
254 render : function (_self,e)
261 '|xns' : 'Roo.bootstrap',
266 '|xns' : 'Roo.bootstrap',
272 '|xns' : 'Roo.bootstrap',
276 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
281 '|xns' : 'Roo.bootstrap'
290 render : function (_self)
292 _this.row_pwd_label = _self;
296 '|xns' : 'Roo.bootstrap',
302 '|xns' : 'Roo.bootstrap',
305 xtype : 'FieldLabel',
306 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
308 '|xns' : 'Roo.bootstrap'
317 render : function (_self)
319 _this.row_pwd1 = _self;
323 '|xns' : 'Roo.bootstrap',
329 '|xns' : 'Roo.bootstrap',
332 xtype : 'SecurePass',
334 inputType : 'password',
337 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
339 '|xns' : 'Roo.bootstrap'
348 render : function (_self)
350 _this.row_pwd2 = _self;
354 '|xns' : 'Roo.bootstrap',
360 '|xns' : 'Roo.bootstrap',
365 inputType : 'password',
366 invalidText : 'The passwords you entered do not match',
368 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
369 validator : function(v){
371 if(_this.form.findField('password').getValue() == v) {
379 '|xns' : 'Roo.bootstrap'
388 '|xns' : 'Roo.bootstrap',
394 '|xns' : 'Roo.bootstrap',
398 inputType : 'hidden',
401 '|xns' : 'Roo.bootstrap'
405 inputType : 'hidden',
408 '|xns' : 'Roo.bootstrap'
419 render : function (_self)
421 _this.error_row = this;
423 this.el.setVisibilityMode(Roo.Element.DISPLAY);
429 '|xns' : 'Roo.bootstrap',
435 '|xns' : 'Roo.bootstrap',
439 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
441 render : function (_self)
443 _this.text_el = _self;
447 '|xns' : 'Roo.bootstrap'
457 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);