2 "name" : "Pman.Dialog.VerifyAccess",
5 "path" : "/home/edward/gitlive/Pman.Core/Pman.Dialog.VerifyAccess.bjs",
9 "e2c9d024b79dfb48b42a7807206c6aed" : "Verify New IP Access",
10 "d41d8cd98f00b204e9800998ecf8427e" : "",
11 "a12a3079e14ced46e69ba52b8a90b21a" : "IP",
12 "f6039d44b29456b20f8f373155ae4973" : "Username",
13 "004bf6c9a40003140292e97330236c53" : "Action",
14 "5a787141d53b573ec9b86e900bfe0d79" : "Expire Date",
15 "dfb790522fdea3859af206d32916fe77" : "User Agent",
16 "70d9be9b139893aa6c69b5e77e614311" : "Confirm"
21 "show" : "function (_self)\n{\n var path = window.location.pathname.split('/');\n \n var authorized_key = path.pop();\n \n var id = path.pop();\n \n new Pman.Request({\n url: baseURL + '/Core/VerifyAccess',\n method : 'POST',\n mask : 'Loading...',\n params : {\n id : id,\n authorized_key : authorized_key,\n _to_data : 1\n }, \n success : function(res) {\n \n _this.data = res.data;\n \n if(_this.data.status != 0){\n _this.data.hide();\n Roo.bootstrap.MessageBox.alert('Notice', 'This IP has been verified [' + _this.data.ip + ']');\n return;\n }\n \n _this.form.setValues(_this.data);\n \n if(_this.data.status * 1 == 0){\n _this.form.findField('status').reset();\n }\n \n _this.form.clearInvalid();\n \n return;\n },\n failure: function(res) {\n \n _this.dialog.hide();\n \n Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);\n \n return;\n }\n });\n}"
23 "String cls" : "enable-overflow",
24 "Boolean allow_close" : false,
26 "$ xns" : "Roo.bootstrap",
27 "String title" : "Verify New IP Access",
31 "actionfailed" : "function (_self, action)\n{\n _this.dialog.el.unmask();\n Roo.log(\"action failed\");\n Roo.log(action);\n \n if(!action.result.errorMsg){\n Roo.bootstrap.MessageBox.alert(\"Error\", \"Please contact system adminisrator\");\n }\n \n var msg = action.result.errorMsg;\n \n if(msg.length >= 200){\n msg = msg.substring(0,199) + '...'\n }\n \n Roo.bootstrap.MessageBox.alert(\"Error\", msg);\n}",
32 "actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n \n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n Roo.bootstrap.MessageBox.alert('Notice', 'You have verified the IP [' + _this.data.ip + ']');\n \n return;\n }\n \n}",
33 "render" : "function (_self,e)\n{\n _this.form = _self;\n \n}"
35 "$ string url" : "baseURL + '/Core/VerifyAccess'",
36 "Boolean errorMask" : true,
38 "String labelAlign" : "top",
39 "$ xns" : "Roo.bootstrap",
40 "Boolean loadMask" : false,
44 "$ xns" : "Roo.bootstrap",
49 "$ xns" : "Roo.bootstrap",
52 "String name" : "email",
53 "Boolean readOnly" : true,
55 "string fieldLabel" : "Username",
56 "$ xns" : "Roo.bootstrap"
63 "$ xns" : "Roo.bootstrap",
67 "Boolean readOnly" : true,
69 "string fieldLabel" : "IP",
70 "$ xns" : "Roo.bootstrap"
77 "$ xns" : "Roo.bootstrap",
80 "String name" : "user_agent",
81 "Boolean readOnly" : true,
83 "string fieldLabel" : "User Agent",
85 "$ xns" : "Roo.bootstrap",
86 "String style" : "margin-bottom: 15px;"
93 "$ xns" : "Roo.bootstrap",
97 "select" : "function (combo, record, index)\n{\n _this.expire_dt.allowBlank = true;\n _this.expire_dt.el.hide();\n \n if(record.data.code == '-2'){\n _this.expire_dt.allowBlank = false;\n _this.expire_dt.el.show();\n }\n}"
99 "Boolean allowBlank" : false,
100 "Boolean selectOnFocus" : true,
101 "String name" : "status_name",
102 "String mode" : "local",
103 "String valueField" : "code",
104 "Boolean editable" : false,
105 "xtype" : "ComboBox",
106 "String triggerAction" : "all",
107 "string fieldLabel" : "Action",
108 "Boolean alwaysQuery" : true,
109 "$ xns" : "Roo.bootstrap",
110 "String/Roo.Template tpl" : "<div class=\"roo-select2-result\"><b>{value}</b></div>",
111 "String hiddenName" : "status",
112 "String displayField" : "value",
113 "String indicatorpos" : "right",
114 "Boolean forceSelection" : true,
117 "$ string data" : "[\n ['1', 'Approve'],\n ['-2', 'Temporary'],\n ['-1', 'Reject']\n] ",
118 "xtype" : "SimpleStore",
119 "$ xns" : "Roo.data",
120 "$ fields" : "[ 'code', 'value' ]",
130 "$ xns" : "Roo.bootstrap",
134 "render" : "function (_self)\n{\n _this.expire_dt = this;\n \n var d = new Date();\n \n d.setDate(d.getDate() - 1);\n\n this.setStartDate(d);\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n this.el.hide();\n}"
136 "Boolean allowBlank" : false,
137 "String name" : "expire_dt",
138 "String format" : "Y-m-d",
139 "xtype" : "DateField",
140 "string fieldLabel" : "Expire Date",
141 "$ xns" : "Roo.bootstrap",
142 "String indicatorpos" : "right"
150 "$ xns" : "Roo.bootstrap",
155 "$ xns" : "Roo.bootstrap",
158 "String name" : "id",
160 "String inputType" : "hidden",
161 "$ xns" : "Roo.bootstrap"
164 "String name" : "authorized_key",
166 "String inputType" : "hidden",
167 "$ xns" : "Roo.bootstrap"
177 "render" : "function (_self)\n{\n _this.error_row = this;\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n this.el.hide();\n}"
180 "$ xns" : "Roo.bootstrap",
185 "$ xns" : "Roo.bootstrap",
189 "render" : "function (_self)\n{\n _this.text_el = _self;\n}"
192 "$ xns" : "Roo.bootstrap",
201 "click" : "function (_self, e)\n{\n if(!_this.form.isValid()){\n return;\n }\n\n _this.dialog.el.mask('Sending...');\n _this.form.doAction('submit');\n \n}"
203 "String weight" : "primary",
205 "$ xns" : "Roo.bootstrap",
206 "String html" : "Confirm",
207 "* prop" : "buttons[]"