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) {
79 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
87 '|xns' : 'Roo.bootstrap',
91 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
94 click : function (_self, e)
96 if(!_this.form.isValid()){
100 var p1 = _this.form.findField('password').getValue();
101 var p2 = _this.form.findField('password1').getValue();
104 _this.form.findField('password1').markInvalid('Password do not match');
108 _this.dialog.el.mask('Sending...');
109 _this.form.doAction('submit');
112 render : function (_self)
114 _this.btn_ok = _self;
118 '|xns' : 'Roo.bootstrap'
122 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
125 click : function (_self, e)
127 var path = window.location.pathname.split('/');
129 var verify_key = path.pop();
134 url: baseURL + '/Roo/Coba_application_signup',
140 success : function(res) {
141 var msg = "We have re-sent you an invitation via email." +
143 "Please check your inbox for the final registration step." +
145 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
147 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
149 failure: function(res) {
150 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
154 render : function (_self)
156 _this.btn_resend = _self;
157 this.el.setVisibilityMode(Roo.Element.DISPLAY);
162 '|xns' : 'Roo.bootstrap'
170 url : baseURL + '/Register/Confirm',
172 actioncomplete : function (_self, action)
174 if (action.type == 'setdata') {
176 _this.form.findField('password').focus();
180 if (action.type == 'load') {
184 if (action.type =='submit') {
188 Roo.get(document.body).mask('Start your Application');
190 setTimeout(function() {
191 window.location.href = baseURL;
198 actionfailed : function (_self, action)
200 _this.dialog.el.unmask();
201 Roo.log("action failed");
204 if(!action.result.errorMsg){
205 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
208 var msg = action.result.errorMsg;
210 if(msg.length >= 200){
211 msg = msg.substring(0,199) + '...'
214 Roo.bootstrap.MessageBox.alert("Error", msg);
216 render : function (_self,e)
223 '|xns' : 'Roo.bootstrap',
228 '|xns' : 'Roo.bootstrap',
234 '|xns' : 'Roo.bootstrap',
238 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
243 '|xns' : 'Roo.bootstrap'
252 render : function (_self)
254 _this.row_pwd_label = _self;
258 '|xns' : 'Roo.bootstrap',
264 '|xns' : 'Roo.bootstrap',
267 xtype : 'FieldLabel',
268 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
270 '|xns' : 'Roo.bootstrap'
279 render : function (_self)
281 _this.row_pwd1 = _self;
285 '|xns' : 'Roo.bootstrap',
291 '|xns' : 'Roo.bootstrap',
294 xtype : 'SecurePass',
296 inputType : 'password',
299 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
301 '|xns' : 'Roo.bootstrap'
310 render : function (_self)
312 _this.row_pwd2 = _self;
316 '|xns' : 'Roo.bootstrap',
322 '|xns' : 'Roo.bootstrap',
327 inputType : 'password',
328 invalidText : 'The passwords you entered do not match',
330 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
331 validator : function(v){
333 if(_this.form.findField('password').getValue() == v) {
341 '|xns' : 'Roo.bootstrap'
350 '|xns' : 'Roo.bootstrap',
356 '|xns' : 'Roo.bootstrap',
360 inputType : 'hidden',
363 '|xns' : 'Roo.bootstrap'
367 inputType : 'hidden',
370 '|xns' : 'Roo.bootstrap'
381 render : function (_self)
383 _this.error_row = this;
385 this.el.setVisibilityMode(Roo.Element.DISPLAY);
391 '|xns' : 'Roo.bootstrap',
397 '|xns' : 'Roo.bootstrap',
401 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
403 render : function (_self)
405 _this.text_el = _self;
409 '|xns' : 'Roo.bootstrap'
419 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);