Pman.Dialog.VerifyAccess.bjs
[Pman.Core] / Pman.Dialog.VerifyAccess.bjs
index e355bb8..5ba6d9c 100644 (file)
@@ -9,16 +9,14 @@
   "e2c9d024b79dfb48b42a7807206c6aed" : "Verify New IP Access",
   "d41d8cd98f00b204e9800998ecf8427e" : "",
   "f6039d44b29456b20f8f373155ae4973" : "Username",
-  "51eea3dc60ae3a0b1bb8188bc6337dc2" : "enter password",
   "dfb790522fdea3859af206d32916fe77" : "User Agent",
-  "1849ffc8731b5e74ae6157c91ba73575" : "Please confirm your password",
   "d71940f24ee38ee09f6e06b908480bcf" : "Resend email",
   "14cf5e829f5cb6fbf8cb54f7c5ff4ca9" : "Start the application process   "
  },
  "items" : [
   {
    "listeners" : {
-    "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            Roo.log(res);\n            return;\n            _this.form.setValues(res.data);\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}"
+    "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            _this.form.setValues(res.data);\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}"
    },
    "String cls" : "enable-overflow",
    "Boolean allow_close" : false,
@@ -29,7 +27,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        _this.form.findField('password').focus();\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        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'",
@@ -53,7 +51,6 @@
            "Boolean readOnly" : true,
            "xtype" : "Input",
            "string fieldLabel" : "Username",
-           "String labelAlign" : "top",
            "$ xns" : "Roo.bootstrap"
           }
          ]
@@ -77,6 +74,7 @@
            "Boolean readOnly" : true,
            "xtype" : "TextArea",
            "string fieldLabel" : "User Agent",
+           "Number rows" : 3,
            "$ xns" : "Roo.bootstrap"
           }
          ]
       },
       {
        "listeners" : {
-        "render" : "function (_self)\n{\n    _this.row_pwd1 = _self;\n}"
-       },
-       "xtype" : "Row",
-       "$ xns" : "Roo.bootstrap",
-       "items" : [
-        {
-         "xtype" : "Column",
-         "Number xs" : 12,
-         "$ xns" : "Roo.bootstrap",
-         "items" : [
-          {
-           "Boolean allowBlank" : false,
-           "String name" : "password",
-           "xtype" : "SecurePass",
-           "String labelAlign" : "top",
-           "string placeholder" : "enter password",
-           "String inputType" : "password",
-           "$ xns" : "Roo.bootstrap"
-          }
-         ]
-        }
-       ]
-      },
-      {
-       "listeners" : {
-        "render" : "function (_self)\n{\n    _this.row_pwd2 = _self;\n}"
+        "render" : "function (_self)\n{\n    _this.row_pwd_label = _self;\n}"
        },
        "xtype" : "Row",
        "$ xns" : "Roo.bootstrap",
          "$ xns" : "Roo.bootstrap",
          "items" : [
           {
-           "Boolean allowBlank" : false,
-           "string invalidText" : "The passwords you entered do not match",
-           "String name" : "password1",
-           "xtype" : "Input",
-           "string placeholder" : "Please confirm your password",
-           "String inputType" : "password",
+           "listeners" : {
+            "render" : "function (_self)\n{\n    _this.status_filter = _self;\n}",
+            "select" : "function (combo, record, index)\n{\n    _this.table.footer.onClick('first'); \n}"
+           },
+           "String name" : "status_filter_name",
+           "String mode" : "local",
+           "String valueField" : "code",
+           "Boolean editable" : false,
+           "xtype" : "ComboBox",
+           "String triggerAction" : "all",
            "$ xns" : "Roo.bootstrap",
-           "$ Function validator" : "function(v){\n    \n    if(_this.form.findField('password').getValue() == v) {\n        \n        return true;\n    }\n    \n    return false;\n}"
+           "String hiddenName" : "status_filter",
+           "String displayField" : "value",
+           "items" : [
+            {
+             "$ string data" : "[\n    ['all', 'All'],\n    ['submitted', 'Submitted'],\n    ['pending_submission', 'Pending Submission'],\n    ['pending_approval', 'Pending Approval'],\n    ['rejected', 'Rejected'],\n    ['approved', 'Approved'],\n    ['deleted', 'Deleted']\n] ",
+             "xtype" : "SimpleStore",
+             "$ xns" : "Roo.data",
+             "$ fields" : "[ 'code', 'value' ]",
+             "* prop" : "store"
+            }
+           ]
           }
          ]
         }
        "items" : [
         {
          "xtype" : "Column",
-         "Number xs" : 8,
+         "Number xs" : 12,
          "$ xns" : "Roo.bootstrap",
          "items" : [
           {