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 '004bf6c9a40003140292e97330236c53' :"Action",
15 'dfb790522fdea3859af206d32916fe77' :"User Agent",
16 'd71940f24ee38ee09f6e06b908480bcf' :"Resend email",
17 '14cf5e829f5cb6fbf8cb54f7c5ff4ca9' :"Start the application process "
23 show : function(data, cb)
31 this.dialog.show(this.data._el);
34 this.form.setValues(data);
35 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
43 this.dialog = Roo.factory({
46 cls : 'enable-overflow',
47 title : _this._strings['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */,
49 show : function (_self)
51 var path = window.location.pathname.split('/');
53 var authorized_key = path.pop();
58 url: baseURL + '/Core/VerifyAccess',
63 authorized_key : authorized_key,
66 success : function(res) {
68 _this.data = res.data;
70 _this.form.setValues(_this.data);
74 failure: function(res) {
78 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);
86 '|xns' : 'Roo.bootstrap',
90 html : _this._strings['14cf5e829f5cb6fbf8cb54f7c5ff4ca9'] /* Start the application process */,
93 click : function (_self, e)
95 if(!_this.form.isValid()){
99 var p1 = _this.form.findField('password').getValue();
100 var p2 = _this.form.findField('password1').getValue();
103 _this.form.findField('password1').markInvalid('Password do not match');
107 _this.dialog.el.mask('Sending...');
108 _this.form.doAction('submit');
111 render : function (_self)
113 _this.btn_ok = _self;
117 '|xns' : 'Roo.bootstrap'
121 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
124 click : function (_self, e)
126 var path = window.location.pathname.split('/');
128 var verify_key = path.pop();
133 url: baseURL + '/Roo/Coba_application_signup',
139 success : function(res) {
140 var msg = "We have re-sent you an invitation via email." +
142 "Please check your inbox for the final registration step." +
144 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
146 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
148 failure: function(res) {
149 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
153 render : function (_self)
155 _this.btn_resend = _self;
156 this.el.setVisibilityMode(Roo.Element.DISPLAY);
161 '|xns' : 'Roo.bootstrap'
170 url : baseURL + '/Core/VerifyAccess',
172 actioncomplete : function (_self, action)
174 if (action.type == 'setdata') {
178 if (action.type == 'load') {
180 if(_this.data.status * 1 == 0){
181 _this.form.findField('status').reset();
186 if (action.type =='submit') {
190 Roo.get(document.body).mask('Start your Application');
192 setTimeout(function() {
193 window.location.href = baseURL;
200 actionfailed : function (_self, action)
202 _this.dialog.el.unmask();
203 Roo.log("action failed");
206 if(!action.result.errorMsg){
207 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
210 var msg = action.result.errorMsg;
212 if(msg.length >= 200){
213 msg = msg.substring(0,199) + '...'
216 Roo.bootstrap.MessageBox.alert("Error", msg);
218 render : function (_self,e)
225 '|xns' : 'Roo.bootstrap',
230 '|xns' : 'Roo.bootstrap',
236 '|xns' : 'Roo.bootstrap',
240 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
244 '|xns' : 'Roo.bootstrap'
253 '|xns' : 'Roo.bootstrap',
259 '|xns' : 'Roo.bootstrap',
263 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
267 style : 'margin-bottom: 15px;',
269 '|xns' : 'Roo.bootstrap'
278 '|xns' : 'Roo.bootstrap',
284 '|xns' : 'Roo.bootstrap',
289 displayField : 'value',
291 fieldLabel : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
292 hiddenName : 'status',
294 name : 'status_name',
295 triggerAction : 'all',
298 select : function (combo, record, index)
304 '|xns' : 'Roo.bootstrap',
306 xtype : 'SimpleStore',
311 fields : [ 'code', 'value' ],
323 '|xns' : 'Roo.bootstrap',
329 '|xns' : 'Roo.bootstrap',
333 inputType : 'hidden',
336 '|xns' : 'Roo.bootstrap'
340 inputType : 'hidden',
341 name : 'authorized_key',
343 '|xns' : 'Roo.bootstrap'
354 render : function (_self)
356 _this.error_row = this;
358 this.el.setVisibilityMode(Roo.Element.DISPLAY);
364 '|xns' : 'Roo.bootstrap',
370 '|xns' : 'Roo.bootstrap',
374 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
376 render : function (_self)
378 _this.text_el = _self;
382 '|xns' : 'Roo.bootstrap'
392 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);