sync
[Pman.Admin] / Pman.Dialog.AdminNotifySender.bjs
1 {
2  "items" : [
3   {
4    "$ xns" : "Roo",
5    "Boolean closable" : true,
6    "collapsible" : false,
7    "height" : 200,
8    "items" : [
9     {
10      "$ xns" : "Roo",
11      "* prop" : "center",
12      "xtype" : "LayoutRegion"
13     },
14     {
15      "$ xns" : "Roo",
16      "items" : [
17       {
18        "$ url" : "baseURL + '/Roo/core_notify_sender'",
19        "$ xns" : "Roo.form",
20        "items" : [
21         {
22          "$ xns" : "Roo.form",
23          "String vtype" : "email",
24          "allowBlank" : false,
25          "fieldLabel" : "Email",
26          "name" : "email",
27          "width" : 200,
28          "xtype" : "TextField"
29         },
30         {
31          "$ xns" : "Roo.form",
32          "allowBlank" : false,
33          "fieldLabel" : "Pool Name",
34          "name" : "poolname",
35          "width" : 200,
36          "xtype" : "TextField"
37         },
38         {
39          "$ xns" : "Roo.form",
40          "String fieldLabel" : "Is Active?",
41          "String name" : "is_active",
42          "xtype" : "Checkbox"
43         },
44         {
45          "$ xns" : "Roo.form",
46          "name" : "id",
47          "xtype" : "Hidden"
48         }
49        ],
50        "labelWidth" : 150,
51        "listeners" : {
52         "actionfailed" : [
53          "function (_self, action)",
54          "{",
55          "    _this.dialog.el.unmask();",
56          "    ",
57          "    Pman.standardActionFailed(_self, action);",
58          "}"
59         ],
60         "|actioncomplete" : [
61          "function(_self,action)",
62          "{",
63          "    if (action.type == 'setdata') {",
64          "       ",
65          "       if (_this.data.clone_of) {",
66          "           _this.dialog.el.mask(\"Loading\");",
67          "            this.load({ method: 'GET', params: { '_id' : _this.data.clone_of }});",
68          "       }",
69          "       return;",
70          "    }",
71          "    if (action.type == 'load') {",
72          "        _this.dialog.el.unmask();",
73          "        // unset the id..",
74          "        ",
75          "        return;",
76          "    }",
77          "    if (action.type =='submit') {",
78          "    ",
79          "        _this.dialog.el.unmask();",
80          "        _this.dialog.hide();",
81          "        ",
82          "         ",
83          "        _this.form.reset();",
84          "         ",
85          "         _this.callback.call(_this, action.result.data);",
86          "  ",
87          "        ",
88          "         return;",
89          "    }",
90          "}",
91          ""
92         ],
93         "|rendered" : [
94          "function (form)",
95          "{",
96          "    _this.form= form;",
97          "}",
98          ""
99         ]
100        },
101        "method" : "POST",
102        "style" : "margin:10px;",
103        "xtype" : "Form"
104       }
105      ],
106      "region" : "center",
107      "xtype" : "ContentPanel"
108     },
109     {
110      "$ xns" : "Roo",
111      "* prop" : "buttons[]",
112      "listeners" : {
113       "click" : [
114        "function (_self, e)",
115        "{",
116        "   _this.dialog.hide();",
117        "",
118        "}"
119       ]
120      },
121      "text" : "Cancel",
122      "xtype" : "Button"
123     },
124     {
125      "$ xns" : "Roo",
126      "* prop" : "buttons[]",
127      "listeners" : {
128       "click" : [
129        "function (_self, e)",
130        "{",
131        " ",
132        "    _this.form.doAction(\"submit\");",
133        "",
134        "}"
135       ]
136      },
137      "text" : "Save",
138      "xtype" : "Button"
139     }
140    ],
141    "modal" : true,
142    "resizable" : false,
143    "title" : "Add / Edit Sender",
144    "width" : 500,
145    "xtype" : "LayoutDialog"
146   }
147  ],
148  "modOrder" : "001",
149  "name" : "Pman.Dialog.AdminNotifySender",
150  "named_strings" : {
151   "email_fieldLabel" : "ce8ae9da5b7cd6c3df2929543a9af92d",
152   "is_active_fieldLabel" : "e253f01e45700c07327115a5e6d677bf",
153   "poolname_fieldLabel" : "7e240928383acb93e5066a6149430337"
154  },
155  "parent" : "",
156  "path" : "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminNotifySender.bjs",
157  "permname" : "",
158  "strings" : {
159   "7e240928383acb93e5066a6149430337" : "Pool Name",
160   "b46cf6d1278a6e8ba1e1fb3290ad9166" : "Add / Edit Sender",
161   "c9cc8cce247e49bae79f15173ce97354" : "Save",
162   "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
163   "e253f01e45700c07327115a5e6d677bf" : "Is Active?",
164   "ea4788705e6873b424c65e91c2846b19" : "Cancel"
165  },
166  "title" : ""
167 }