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 'e2c9d024b79dfb48b42a7807206c6aed' :"Verify New IP Access",
12 'd41d8cd98f00b204e9800998ecf8427e' :"",
13 'b945ed1d61d8edbe16a1192ad6d2fd58' :"Please enter a memorable password for logging into your application",
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['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */,
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',
68 authorized_key : authorized_key,
71 success : function(res) {
72 //_this.dialog.show();
75 _this.form.setValues(res.data);
78 failure: function(res) {
82 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
90 '|xns' : 'Roo.bootstrap',
94 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
97 click : function (_self, e)
99 if(!_this.form.isValid()){
103 var p1 = _this.form.findField('password').getValue();
104 var p2 = _this.form.findField('password1').getValue();
107 _this.form.findField('password1').markInvalid('Password do not match');
111 _this.dialog.el.mask('Sending...');
112 _this.form.doAction('submit');
115 render : function (_self)
117 _this.btn_ok = _self;
121 '|xns' : 'Roo.bootstrap'
125 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
128 click : function (_self, e)
130 var path = window.location.pathname.split('/');
132 var verify_key = path.pop();
137 url: baseURL + '/Roo/Coba_application_signup',
143 success : function(res) {
144 var msg = "We have re-sent you an invitation via email." +
146 "Please check your inbox for the final registration step." +
148 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
150 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
152 failure: function(res) {
153 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
157 render : function (_self)
159 _this.btn_resend = _self;
160 this.el.setVisibilityMode(Roo.Element.DISPLAY);
165 '|xns' : 'Roo.bootstrap'
173 url : baseURL + '/Register/Confirm',
175 actioncomplete : function (_self, action)
177 if (action.type == 'setdata') {
179 _this.form.findField('password').focus();
183 if (action.type == 'load') {
187 if (action.type =='submit') {
191 Roo.get(document.body).mask('Start your Application');
193 setTimeout(function() {
194 window.location.href = baseURL;
201 actionfailed : function (_self, action)
203 _this.dialog.el.unmask();
204 Roo.log("action failed");
207 if(!action.result.errorMsg){
208 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
211 var msg = action.result.errorMsg;
213 if(msg.length >= 200){
214 msg = msg.substring(0,199) + '...'
217 Roo.bootstrap.MessageBox.alert("Error", msg);
219 render : function (_self,e)
226 '|xns' : 'Roo.bootstrap',
231 '|xns' : 'Roo.bootstrap',
237 '|xns' : 'Roo.bootstrap',
241 fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
246 '|xns' : 'Roo.bootstrap'
255 render : function (_self)
257 _this.row_pwd_label = _self;
261 '|xns' : 'Roo.bootstrap',
267 '|xns' : 'Roo.bootstrap',
270 xtype : 'FieldLabel',
271 html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
273 '|xns' : 'Roo.bootstrap'
282 render : function (_self)
284 _this.row_pwd1 = _self;
288 '|xns' : 'Roo.bootstrap',
294 '|xns' : 'Roo.bootstrap',
297 xtype : 'SecurePass',
299 inputType : 'password',
302 placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
304 '|xns' : 'Roo.bootstrap'
313 render : function (_self)
315 _this.row_pwd2 = _self;
319 '|xns' : 'Roo.bootstrap',
325 '|xns' : 'Roo.bootstrap',
330 inputType : 'password',
331 invalidText : 'The passwords you entered do not match',
333 placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
334 validator : function(v){
336 if(_this.form.findField('password').getValue() == v) {
344 '|xns' : 'Roo.bootstrap'
353 '|xns' : 'Roo.bootstrap',
359 '|xns' : 'Roo.bootstrap',
363 inputType : 'hidden',
366 '|xns' : 'Roo.bootstrap'
370 inputType : 'hidden',
373 '|xns' : 'Roo.bootstrap'
384 render : function (_self)
386 _this.error_row = this;
388 this.el.setVisibilityMode(Roo.Element.DISPLAY);
394 '|xns' : 'Roo.bootstrap',
400 '|xns' : 'Roo.bootstrap',
404 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
406 render : function (_self)
408 _this.text_el = _self;
412 '|xns' : 'Roo.bootstrap'
422 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);