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