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) {
83 '|xns' : 'Roo.bootstrap',
87 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
90 click : function (_self, e)
92 if(!_this.form.isValid()){
96 var p1 = _this.form.findField('password').getValue();
97 var p2 = _this.form.findField('password1').getValue();
100 _this.form.findField('password1').markInvalid('Password do not match');
104 _this.dialog.el.mask('Sending...');
105 _this.form.doAction('submit');
108 render : function (_self)
110 _this.btn_ok = _self;
114 '|xns' : 'Roo.bootstrap'
118 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
121 click : function (_self, e)
123 var path = window.location.pathname.split('/');
125 var verify_key = path.pop();
130 url: baseURL + '/Roo/Coba_application_signup',
136 success : function(res) {
137 var msg = "We have re-sent you an invitation via email." +
139 "Please check your inbox for the final registration step." +
141 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
143 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
145 failure: function(res) {
146 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
150 render : function (_self)
152 _this.btn_resend = _self;
153 this.el.setVisibilityMode(Roo.Element.DISPLAY);
158 '|xns' : 'Roo.bootstrap'
166 url : baseURL + '/Register/Confirm',
168 actioncomplete : function (_self, action)
170 if (action.type == 'setdata') {
172 _this.form.findField('password').focus();
176 if (action.type == 'load') {
180 if (action.type =='submit') {
184 Roo.get(document.body).mask('Start your Application');
186 setTimeout(function() {
187 window.location.href = baseURL;
194 actionfailed : function (_self, action)
196 _this.dialog.el.unmask();
197 Roo.log("action failed");
200 if(!action.result.errorMsg){
201 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
204 var msg = action.result.errorMsg;
206 if(msg.length >= 200){
207 msg = msg.substring(0,199) + '...'
210 Roo.bootstrap.MessageBox.alert("Error", msg);
212 render : function (_self,e)
219 '|xns' : 'Roo.bootstrap',
224 '|xns' : 'Roo.bootstrap',
230 '|xns' : 'Roo.bootstrap',
234 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
239 '|xns' : 'Roo.bootstrap'
248 render : function (_self)
250 _this.row_pwd_label = _self;
254 '|xns' : 'Roo.bootstrap',
260 '|xns' : 'Roo.bootstrap',
263 xtype : 'FieldLabel',
264 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
266 '|xns' : 'Roo.bootstrap'
275 render : function (_self)
277 _this.row_pwd1 = _self;
281 '|xns' : 'Roo.bootstrap',
287 '|xns' : 'Roo.bootstrap',
290 xtype : 'SecurePass',
292 inputType : 'password',
295 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
297 '|xns' : 'Roo.bootstrap'
306 render : function (_self)
308 _this.row_pwd2 = _self;
312 '|xns' : 'Roo.bootstrap',
318 '|xns' : 'Roo.bootstrap',
323 inputType : 'password',
324 invalidText : 'The passwords you entered do not match',
326 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
327 validator : function(v){
329 if(_this.form.findField('password').getValue() == v) {
337 '|xns' : 'Roo.bootstrap'
346 '|xns' : 'Roo.bootstrap',
352 '|xns' : 'Roo.bootstrap',
356 inputType : 'hidden',
359 '|xns' : 'Roo.bootstrap'
363 inputType : 'hidden',
366 '|xns' : 'Roo.bootstrap'
377 render : function (_self)
379 _this.error_row = this;
381 this.el.setVisibilityMode(Roo.Element.DISPLAY);
387 '|xns' : 'Roo.bootstrap',
393 '|xns' : 'Roo.bootstrap',
397 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
399 render : function (_self)
401 _this.text_el = _self;
405 '|xns' : 'Roo.bootstrap'
415 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);