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 'f6039d44b29456b20f8f373155ae4973' :"Username",
14 'dfb790522fdea3859af206d32916fe77' :"User Agent",
15 'd71940f24ee38ee09f6e06b908480bcf' :"Resend email",
16 '14cf5e829f5cb6fbf8cb54f7c5ff4ca9' :"Start the application process "
22 show : function(data, cb)
30 this.dialog.show(this.data._el);
33 this.form.setValues(data);
34 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
42 this.dialog = Roo.factory({
45 cls : 'enable-overflow',
46 title : _this._strings['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */,
48 show : function (_self)
50 var path = window.location.pathname.split('/');
52 var authorized_key = path.pop();
57 url: baseURL + '/Core/VerifyAccess',
62 authorized_key : authorized_key,
65 success : function(res) {
68 _this.form.setValues(res.data);
71 failure: function(res) {
75 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
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'
167 url : baseURL + '/Core/VerifyAccess',
169 actioncomplete : function (_self, action)
171 if (action.type == 'setdata') {
175 if (action.type == 'load') {
179 if (action.type =='submit') {
183 Roo.get(document.body).mask('Start your Application');
185 setTimeout(function() {
186 window.location.href = baseURL;
193 actionfailed : function (_self, action)
195 _this.dialog.el.unmask();
196 Roo.log("action failed");
199 if(!action.result.errorMsg){
200 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
203 var msg = action.result.errorMsg;
205 if(msg.length >= 200){
206 msg = msg.substring(0,199) + '...'
209 Roo.bootstrap.MessageBox.alert("Error", msg);
211 render : function (_self,e)
218 '|xns' : 'Roo.bootstrap',
223 '|xns' : 'Roo.bootstrap',
229 '|xns' : 'Roo.bootstrap',
233 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
237 '|xns' : 'Roo.bootstrap'
246 render : function (_self)
248 _this.row_pwd_label = _self;
252 '|xns' : 'Roo.bootstrap',
258 '|xns' : 'Roo.bootstrap',
262 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
267 '|xns' : 'Roo.bootstrap'
276 '|xns' : 'Roo.bootstrap',
282 '|xns' : 'Roo.bootstrap',
286 inputType : 'hidden',
289 '|xns' : 'Roo.bootstrap'
293 inputType : 'hidden',
294 name : 'authorized_key',
296 '|xns' : 'Roo.bootstrap'
307 render : function (_self)
309 _this.error_row = this;
311 this.el.setVisibilityMode(Roo.Element.DISPLAY);
317 '|xns' : 'Roo.bootstrap',
323 '|xns' : 'Roo.bootstrap',
327 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
329 render : function (_self)
331 _this.text_el = _self;
335 '|xns' : 'Roo.bootstrap'
345 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);