PHP8
[Pman.BAdmin] / Pman.Dialog.BAdminIPAccess.bjs
1 {
2  "name" : "Pman.Dialog.BAdminIPAccess",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Dialog.BAdminIPAccess.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "e2c9d024b79dfb48b42a7807206c6aed" : "Verify New IP Access",
10   "a12a3079e14ced46e69ba52b8a90b21a" : "IP",
11   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
12   "f6039d44b29456b20f8f373155ae4973" : "Username",
13   "004bf6c9a40003140292e97330236c53" : "Action",
14   "5a787141d53b573ec9b86e900bfe0d79" : "Expire Date",
15   "dfb790522fdea3859af206d32916fe77" : "User Agent",
16   "70d9be9b139893aa6c69b5e77e614311" : "Confirm"
17  },
18  "items" : [
19   {
20    "String cls" : "enable-overflow",
21    "Boolean allow_close" : true,
22    "xtype" : "Modal",
23    "$ xns" : "Roo.bootstrap",
24    "String title" : "Verify New IP Access",
25    "items" : [
26     {
27      "listeners" : {
28       "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}",
29       "actioncomplete" : "function (_self, action)\n{\n    if (action.type == 'setdata') {\n        \n        if(_this.data.id) {\n            this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }});\n        } \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        if (_this.callback) {\n            _this.callback.call(this, action.result.data);\n        }\n        \n        return;\n    }\n    \n}",
30       "render" : "function (_self,e)\n{\n    _this.form = _self;\n    \n}"
31      },
32      "$ string url" : "baseURL + '/Roo/core_ip_access'",
33      "Boolean errorMask" : true,
34      "xtype" : "Form",
35      "String labelAlign" : "top",
36      "$ xns" : "Roo.bootstrap",
37      "Boolean loadMask" : true,
38      "items" : [
39       {
40        "xtype" : "Row",
41        "$ xns" : "Roo.bootstrap",
42        "items" : [
43         {
44          "xtype" : "Column",
45          "Number xs" : 12,
46          "$ xns" : "Roo.bootstrap",
47          "items" : [
48           {
49            "String name" : "email",
50            "Boolean readOnly" : true,
51            "xtype" : "Input",
52            "string fieldLabel" : "Username",
53            "$ xns" : "Roo.bootstrap"
54           }
55          ]
56         },
57         {
58          "xtype" : "Column",
59          "Number xs" : 12,
60          "$ xns" : "Roo.bootstrap",
61          "items" : [
62           {
63            "String name" : "ip",
64            "Boolean readOnly" : true,
65            "xtype" : "Input",
66            "string fieldLabel" : "IP",
67            "$ xns" : "Roo.bootstrap"
68           }
69          ]
70         },
71         {
72          "xtype" : "Column",
73          "Number xs" : 12,
74          "$ xns" : "Roo.bootstrap",
75          "items" : [
76           {
77            "String name" : "user_agent",
78            "Boolean readOnly" : true,
79            "xtype" : "TextArea",
80            "string fieldLabel" : "User Agent",
81            "Number rows" : 3,
82            "$ xns" : "Roo.bootstrap",
83            "String style" : "margin-bottom: 15px;"
84           }
85          ]
86         },
87         {
88          "xtype" : "Column",
89          "Number xs" : 12,
90          "$ xns" : "Roo.bootstrap",
91          "items" : [
92           {
93            "listeners" : {
94             "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}"
95            },
96            "Boolean allowBlank" : false,
97            "Boolean selectOnFocus" : true,
98            "String name" : "status_name",
99            "String mode" : "local",
100            "String valueField" : "code",
101            "Boolean editable" : false,
102            "xtype" : "ComboBox",
103            "String triggerAction" : "all",
104            "string fieldLabel" : "Action",
105            "Boolean alwaysQuery" : true,
106            "$ xns" : "Roo.bootstrap",
107            "String/Roo.Template tpl" : "<div class=\"roo-select2-result\"><b>{value}</b></div>",
108            "String hiddenName" : "status",
109            "String displayField" : "value",
110            "String indicatorpos" : "right",
111            "Boolean forceSelection" : true,
112            "items" : [
113             {
114              "$ string data" : "[\n    ['1', 'Approve'],\n    ['-2', 'Temporary'],\n    ['-1', 'Reject']\n] ",
115              "xtype" : "SimpleStore",
116              "$ xns" : "Roo.data",
117              "$ fields" : "[ 'code', 'value' ]",
118              "* prop" : "store"
119             }
120            ]
121           }
122          ]
123         },
124         {
125          "xtype" : "Column",
126          "Number xs" : 12,
127          "$ xns" : "Roo.bootstrap",
128          "items" : [
129           {
130            "listeners" : {
131             "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}"
132            },
133            "Boolean allowBlank" : false,
134            "String name" : "expire_dt",
135            "String format" : "Y-m-d",
136            "xtype" : "DateField",
137            "string fieldLabel" : "Expire Date",
138            "$ xns" : "Roo.bootstrap",
139            "String indicatorpos" : "right"
140           }
141          ]
142         }
143        ]
144       },
145       {
146        "xtype" : "Row",
147        "$ xns" : "Roo.bootstrap",
148        "items" : [
149         {
150          "xtype" : "Column",
151          "Number xs" : 12,
152          "$ xns" : "Roo.bootstrap",
153          "items" : [
154           {
155            "String name" : "id",
156            "xtype" : "Input",
157            "String inputType" : "hidden",
158            "$ xns" : "Roo.bootstrap"
159           },
160           {
161            "String name" : "authorized_key",
162            "xtype" : "Input",
163            "String inputType" : "hidden",
164            "$ xns" : "Roo.bootstrap"
165           }
166          ]
167         }
168        ]
169       }
170      ]
171     },
172     {
173      "listeners" : {
174       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
175      },
176      "String weight" : "default",
177      "xtype" : "Button",
178      "$ xns" : "Roo.bootstrap",
179      "String html" : "Cancel",
180      "* prop" : "buttons[]"
181     },
182     {
183      "listeners" : {
184       "click" : "function (_self, e)\n{\n    _this.form.doAction('submit');\n    \n}"
185      },
186      "String weight" : "primary",
187      "xtype" : "Button",
188      "$ xns" : "Roo.bootstrap",
189      "String html" : "Confirm",
190      "* prop" : "buttons[]"
191     }
192    ]
193   }
194  ]
195 }