Pman.Dialog.BAdminForgotPassword.bjs
[Pman.BAdmin] / Pman.Dialog.BAdminForgotPassword.bjs
1 {
2  "name" : "Pman.Dialog.BAdminForgotPassword",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Dialog.BAdminForgotPassword.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "6832ac593617c3e5f61c82a20b0d9a3a" : "Enter your email address",
10   "10ac3d04253ef7e1ddc73e6091c0cd55" : "Next",
11   "2eb0c0a5db001bdaca081a347614378a" : "Account recovery\n",
12   "c4ca4238a0b923820dcc509a6f75849b" : "1"
13  },
14  "named_strings" : {
15   "ok_html" : "10ac3d04253ef7e1ddc73e6091c0cd55",
16   "ForgetPassword_value" : "c4ca4238a0b923820dcc509a6f75849b",
17   "username_fieldLabel" : "6832ac593617c3e5f61c82a20b0d9a3a"
18  },
19  "items" : [
20   {
21    "listeners" : {
22     "show" : "function (_self)\n{\n    _this.dialog.el.select('.modal-content', true).first().unmask();\n}"
23    },
24    "String cls" : "enable-overflow roo-bootstrap-dialog",
25    "Boolean animate" : true,
26    "title" : "Account recovery\n",
27    "xtype" : "Modal",
28    "buttonPosition" : "center",
29    "$ xns" : "Roo.bootstrap",
30    "items" : [
31     {
32      "listeners" : {
33       "click" : "function (_self, e)\n{\n    _this.dialog.el.select('.modal-content', true).first().mask('Sending...');\n    _this.form.doAction('submit');\n}"
34      },
35      "String weight" : "primary",
36      "xtype" : "Button",
37      "$ xns" : "Roo.bootstrap",
38      "String html" : "Next",
39      "* prop" : "buttons[]",
40      "string name" : "ok"
41     },
42     {
43      "xtype" : "Row",
44      "$ xns" : "Roo.bootstrap",
45      "items" : [
46       {
47        "xtype" : "Container",
48        "cls" : "col-md-12",
49        "$ xns" : "Roo.bootstrap",
50        "items" : [
51         {
52          "listeners" : {
53           "|render" : "function (_self) {\n    _this.form = _self;\n}",
54           "|actionfailed" : "function (_self, action) {\n\n    Roo.log('action fail?');\n    Roo.log(action);\n    \n    _this.dialog.el.select('.modal-content', true).first().unmask();\n    \n    var err = 'Fill in all the required fields';\n    \n    if (typeof(action) != 'undefined' && action.failureType == 'server') {\n        err = action.result.errorMsg;\n    }\n    \n    Roo.bootstrap.MessageBox.alert('Error', err);\n}",
55           "|actioncomplete" : "function (_self, action) {\n\n    if (action.type == 'setdata') {\n        \n        _this.form.clearInvalid();\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);\n        }\n        \n        _this.form.reset();\n        \n        return;\n        \n    }\n}"
56          },
57          "$ url" : "baseURL + '/Login'",
58          "labelAlign" : "top",
59          "xtype" : "Form",
60          "method" : "POST",
61          "$ xns" : "Roo.bootstrap",
62          "Boolean loadMask" : false,
63          "String style" : "padding: 10px;",
64          "items" : [
65           {
66            "xtype" : "Row",
67            "$ xns" : "Roo.bootstrap",
68            "items" : [
69             {
70              "xtype" : "Column",
71              "Number xs" : 12,
72              "$ xns" : "Roo.bootstrap",
73              "items" : [
74               {
75                "listeners" : {
76                 "specialkey" : "function (_self, e)\n{\n    if(e.getKey() == 13){\n        _this.dialog.el.select('.modal-content', true).first().mask('Sending...');\n        _this.form.doAction('submit');\n    }\n}"
77                },
78                "Boolean allowBlank" : false,
79                "String name" : "username",
80                "xtype" : "Input",
81                "string fieldLabel" : "Enter your email address",
82                "$ xns" : "Roo.bootstrap",
83                "String indicatorpos" : "right"
84               }
85              ]
86             }
87            ]
88           },
89           {
90            "String name" : "ForgetPassword",
91            "xtype" : "Input",
92            "String inputType" : "hidden",
93            "$ xns" : "Roo.bootstrap",
94            "string value" : 1
95           }
96          ]
97         }
98        ]
99       }
100      ]
101     }
102    ]
103   }
104  ]
105 }