Pman.Dialog.VerifyAccess.bjs
[Pman.Core] / Pman.Dialog.VerifyAccess.bjs
index 28f183d..34d5405 100644 (file)
@@ -9,6 +9,7 @@
   "e2c9d024b79dfb48b42a7807206c6aed" : "Verify New IP Access",
   "d41d8cd98f00b204e9800998ecf8427e" : "",
   "f6039d44b29456b20f8f373155ae4973" : "Username",
+  "004bf6c9a40003140292e97330236c53" : "Action",
   "dfb790522fdea3859af206d32916fe77" : "User Agent",
   "d71940f24ee38ee09f6e06b908480bcf" : "Resend email",
   "14cf5e829f5cb6fbf8cb54f7c5ff4ca9" : "Start the application process   "
@@ -27,7 +28,7 @@
     {
      "listeners" : {
       "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}",
-      "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.get(document.body).mask('Start your Application');\n        \n        setTimeout(function() {\n            window.location.href = baseURL;\n        }, 500); \n        \n        return;\n    }\n    \n}",
+      "actioncomplete" : "function (_self, action)\n{\n    if (action.type == 'setdata') {\n        \n        return;\n    }\n    if (action.type == 'load') {\n        \n        if(_this.data.sta)\n        return;\n    }\n    if (action.type =='submit') {\n        \n        _this.dialog.hide();\n        \n        Roo.get(document.body).mask('Start your Application');\n        \n        setTimeout(function() {\n            window.location.href = baseURL;\n        }, 500); \n        \n        return;\n    }\n    \n}",
       "render" : "function (_self,e)\n{\n    _this.form = _self;\n    \n}"
      },
      "$ string url" : "baseURL + '/Core/VerifyAccess'",
@@ -58,9 +59,6 @@
        ]
       },
       {
-       "listeners" : {
-        "render" : "function (_self)\n{\n    _this.row_pwd_label = _self;\n}"
-       },
        "xtype" : "Row",
        "$ xns" : "Roo.bootstrap",
        "items" : [
            "xtype" : "TextArea",
            "string fieldLabel" : "User Agent",
            "Number rows" : 3,
-           "$ xns" : "Roo.bootstrap"
+           "$ xns" : "Roo.bootstrap",
+           "String style" : "margin-bottom: 15px;"
           }
          ]
         }
        ]
       },
       {
-       "listeners" : {
-        "render" : "function (_self)\n{\n    _this.row_pwd_label = _self;\n}"
-       },
        "xtype" : "Row",
        "$ xns" : "Roo.bootstrap",
        "items" : [
          "$ xns" : "Roo.bootstrap",
          "items" : [
           {
-           "String name" : "user_agent",
-           "Boolean readOnly" : true,
-           "xtype" : "TextArea",
-           "string fieldLabel" : "User Agent",
-           "Number rows" : 3,
-           "$ xns" : "Roo.bootstrap"
+           "listeners" : {
+            "select" : "function (combo, record, index)\n{\n    \n}"
+           },
+           "Boolean allowBlank" : false,
+           "String name" : "status_name",
+           "String mode" : "local",
+           "String valueField" : "code",
+           "Boolean editable" : false,
+           "xtype" : "ComboBox",
+           "String triggerAction" : "all",
+           "string fieldLabel" : "Action",
+           "$ xns" : "Roo.bootstrap",
+           "String hiddenName" : "status",
+           "String displayField" : "value",
+           "items" : [
+            {
+             "$ string data" : "[\n    ['1', 'Approve'],\n    ['-1', 'Reject']\n] ",
+             "xtype" : "SimpleStore",
+             "$ xns" : "Roo.data",
+             "$ fields" : "[ 'code', 'value' ]",
+             "* prop" : "store"
+            }
+           ]
           }
          ]
         }