Pman.Dialog.CoreNotifyRecurKeywords.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecurKeywords.bjs
1 {
2  "name" : "Pman.Dialog.CoreNotifyRecurKeywords",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreNotifyRecurKeywords.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "cfcd208495d565ef66e7dff9f98764da" : "0",
10   "c4ca4238a0b923820dcc509a6f75849b" : "1",
11   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
12   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK",
13   "790f855c2139f2faecb810519e90b833" : "Add Notification Keywords"
14  },
15  "items" : [
16   {
17    "listeners" : {
18     "show" : "function (_self)\n{\n    \n}"
19    },
20    "modal" : true,
21    "collapsible" : false,
22    "background" : true,
23    "title" : "Add Notification Keywords",
24    "xtype" : "LayoutDialog",
25    "width" : 400,
26    "$ xns" : "Roo",
27    "closable" : false,
28    "resizable" : false,
29    "height" : 150,
30    "items" : [
31     {
32      "xtype" : "LayoutRegion",
33      "$ xns" : "Roo",
34      "titlebar" : false,
35      "* prop" : "center"
36     },
37     {
38      "region" : "center",
39      "fitToFrame" : true,
40      "background" : true,
41      "xtype" : "ContentPanel",
42      "$ xns" : "Roo",
43      "items" : [
44       {
45        "listeners" : {
46         "|actioncomplete" : "function (_self, action)\n{\n  if (action.type == 'setdata') {\n\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type == 'submit' ) {\n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n\n        if (_this.callback) {\n           _this.callback.call(_this, action.result.data);\n        }\n        _this.form.reset();\n    }\n}\n",
47         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
48        },
49        "$ url" : "baseURL + '/Roo/Core_notify_recur.php'",
50        "xtype" : "Form",
51        "method" : "POST",
52        "style" : "margin: 5px",
53        "$ xns" : "Roo.form",
54        "items" : [
55         {
56          "listeners" : {
57           "keyup" : "function (_self, e)\n{\n    _this.form.findField('name').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());\n    \n}"
58          },
59          "fieldLabel" : "Display Name",
60          "xtype" : "TextField",
61          "allowBlank" : false,
62          "width" : 200,
63          "$ xns" : "Roo.form",
64          "name" : "display_name"
65         },
66         {
67          "String actionMode" : "fieldEl",
68          "Boolean checked" : true,
69          "fieldLabel" : "Active",
70          "inputValue" : 1,
71          "hidden" : true,
72          "value" : 1,
73          "xtype" : "Checkbox",
74          "valueOff" : 0,
75          "$ xns" : "Roo.form",
76          "name" : "active"
77         },
78         {
79          "xtype" : "Hidden",
80          "$ xns" : "Roo.form",
81          "name" : "etype"
82         },
83         {
84          "xtype" : "Hidden",
85          "value" : 0,
86          "$ xns" : "Roo.form",
87          "name" : "seqid"
88         },
89         {
90          "xtype" : "Hidden",
91          "$ xns" : "Roo.form",
92          "name" : "id"
93         }
94        ]
95       }
96      ]
97     },
98     {
99      "listeners" : {
100       "|click" : "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
101      },
102      "text" : "Cancel",
103      "xtype" : "Button",
104      "$ xns" : "Roo",
105      "* prop" : "buttons[]"
106     },
107     {
108      "listeners" : {
109       "|click" : "function() {\n\n    var name =     _this.form.findField('name').getValue();\n    name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n    if (!name.length) {\n        Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n        return;\n    }\n    _this.form.findField('name').setValue(name);\n \n    _this.form.doAction('submit');\n    \n}"
110      },
111      "text" : "OK",
112      "xtype" : "Button",
113      "$ xns" : "Roo",
114      "* prop" : "buttons[]"
115     }
116    ]
117   }
118  ]
119 }