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');
113 '|xns' : 'Roo.bootstrap'
117 html : _this._strings['d71940f24ee38ee09f6e06b908480bcf'] /* Resend email */,
120 click : function (_self, e)
122 var path = window.location.pathname.split('/');
124 var verify_key = path.pop();
129 url: baseURL + '/Roo/Coba_application_signup',
135 success : function(res) {
136 var msg = "We have re-sent you an invitation via email." +
138 "Please check your inbox for the final registration step." +
140 "<B>(Note. emails may accidentally be sent to your Spam Folder)</B>";
142 Roo.bootstrap.MessageBox.alert('Please check your email', msg) ;
144 failure: function(res) {
145 Roo.bootstrap.MessageBox.alert('Error', res.errorMsg) ;
149 render : function (_self)
151 _this.btn_resend = _self;
152 this.el.setVisibilityMode(Roo.Element.DISPLAY);
157 '|xns' : 'Roo.bootstrap'
166 url : baseURL + '/Core/VerifyAccess',
168 actioncomplete : function (_self, action)
170 if (action.type == 'setdata') {
174 if (action.type == 'load') {
176 if(_this.data.status * 1 == 0){
177 _this.form.findField('status').reset();
182 if (action.type =='submit') {
190 actionfailed : function (_self, action)
192 _this.dialog.el.unmask();
193 Roo.log("action failed");
196 if(!action.result.errorMsg){
197 Roo.bootstrap.MessageBox.alert("Error", "Please contact system adminisrator");
200 var msg = action.result.errorMsg;
202 if(msg.length >= 200){
203 msg = msg.substring(0,199) + '...'
206 Roo.bootstrap.MessageBox.alert("Error", msg);
208 render : function (_self,e)
215 '|xns' : 'Roo.bootstrap',
220 '|xns' : 'Roo.bootstrap',
226 '|xns' : 'Roo.bootstrap',
230 fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
234 '|xns' : 'Roo.bootstrap'
243 '|xns' : 'Roo.bootstrap',
249 '|xns' : 'Roo.bootstrap',
253 fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
257 style : 'margin-bottom: 15px;',
259 '|xns' : 'Roo.bootstrap'
268 '|xns' : 'Roo.bootstrap',
274 '|xns' : 'Roo.bootstrap',
279 displayField : 'value',
281 fieldLabel : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
282 hiddenName : 'status',
284 name : 'status_name',
285 triggerAction : 'all',
288 select : function (combo, record, index)
294 '|xns' : 'Roo.bootstrap',
296 xtype : 'SimpleStore',
301 fields : [ 'code', 'value' ],
313 '|xns' : 'Roo.bootstrap',
319 '|xns' : 'Roo.bootstrap',
323 inputType : 'hidden',
326 '|xns' : 'Roo.bootstrap'
330 inputType : 'hidden',
331 name : 'authorized_key',
333 '|xns' : 'Roo.bootstrap'
344 render : function (_self)
346 _this.error_row = this;
348 this.el.setVisibilityMode(Roo.Element.DISPLAY);
354 '|xns' : 'Roo.bootstrap',
360 '|xns' : 'Roo.bootstrap',
364 html : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
366 render : function (_self)
368 _this.text_el = _self;
372 '|xns' : 'Roo.bootstrap'
382 Roo.apply(Pman.Dialog.VerifyAccess, Pman.Dialog.VerifyAccess.prototype);