sync
[Pman.Admin] / Pman.Tab.AdminNotifySender.bjs
1 {
2  "items" : [
3   {
4    "$ xns" : "Roo",
5    "Boolean background" : true,
6    "String region" : "center",
7    "String title" : "Notify Senders",
8    "items" : [
9     {
10      "$ xns" : "Roo",
11      "* prop" : "layout",
12      "items" : [
13       {
14        "$ xns" : "Roo",
15        "* prop" : "south",
16        "Boolean split" : true,
17        "Number height" : 200,
18        "xtype" : "LayoutRegion"
19       },
20       {
21        "$ xns" : "Roo",
22        "* prop" : "center",
23        "xtype" : "LayoutRegion"
24       },
25       {
26        "$ xns" : "Roo",
27        "Boolean background" : true,
28        "fitContainer" : true,
29        "fitToframe" : true,
30        "items" : [
31         {
32          "$ xns" : "Roo.grid",
33          "* prop" : "grid",
34          "autoExpandColumn" : "email",
35          "items" : [
36           {
37            "$ xns" : "Roo",
38            "* prop" : "toolbar",
39            "items" : [
40             {
41              "$ xns" : "Roo.Toolbar",
42              "String text" : "Add",
43              "listeners" : {
44               "click" : [
45                "function() ",
46                "{",
47                "    Pman.Dialog.AdminNotifySender.show(",
48                "         {}, function() {",
49                "        _this.sgrid.footer.onClick('first');",
50                "    }); ",
51                "}"
52               ]
53              },
54              "xtype" : "Button"
55             },
56             {
57              "$ xns" : "Roo.Toolbar",
58              "xtype" : "Fill"
59             },
60             {
61              "$ xns" : "Roo.Toolbar",
62              "String text" : "Remove",
63              "listeners" : {
64               "click" : [
65                "function (_self, e)",
66                "{",
67                "       Pman.genericDelete(_this.spanel, 'core_notify_sender');",
68                "}"
69               ]
70              },
71              "xtype" : "Button"
72             }
73            ],
74            "xtype" : "Toolbar"
75           },
76           {
77            "$ sortInfo" : "{ field : 'email', direction: 'ASC' }",
78            "$ xns" : "Roo.data",
79            "* prop" : "dataSource",
80            "items" : [
81             {
82              "$ url" : "baseURL + '/Roo/core_notify_sender'",
83              "$ xns" : "Roo.data",
84              "* prop" : "proxy",
85              "method" : "GET",
86              "xtype" : "HttpProxy"
87             },
88             {
89              "$ xns" : "Roo.data",
90              "* prop" : "reader",
91              "id" : "id",
92              "root" : "data",
93              "totalProperty" : "total",
94              "xtype" : "JsonReader"
95             }
96            ],
97            "listeners" : {
98             "beforeload" : [
99              "function (_self, options)",
100              "{",
101              "   options.params._with_queue_size  =1 ;",
102              "    ",
103              "}"
104             ]
105            },
106            "remoteSort" : true,
107            "xtype" : "Store"
108           },
109           {
110            "$ xns" : "Roo",
111            "* prop" : "footer",
112            "displayInfo" : true,
113            "displayMsg" : "Displaying Servers {0} - {1} of {2}",
114            "emptyMsg" : "No Servers found",
115            "pageSize" : 25,
116            "xtype" : "PagingToolbar"
117           },
118           {
119            "$ renderer" : [
120             "function(v) {",
121             "    var state = v> 0 ?  '-checked' : '';",
122             "",
123             "    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';",
124             "}"
125            ],
126            "$ xns" : "Roo.grid",
127            "* prop" : "colModel[]",
128            "dataIndex" : "is_active",
129            "header" : "Is Active",
130            "width" : 100,
131            "xtype" : "ColumnModel"
132           },
133           {
134            "$ xns" : "Roo.grid",
135            "* prop" : "colModel[]",
136            "dataIndex" : "email",
137            "header" : "Email",
138            "width" : 150,
139            "xtype" : "ColumnModel"
140           },
141           {
142            "$ xns" : "Roo.grid",
143            "* prop" : "colModel[]",
144            "dataIndex" : "poolname",
145            "header" : "Pool",
146            "width" : 150,
147            "xtype" : "ColumnModel"
148           },
149           {
150            "$ Function renderer" : [
151             "function(v,x,r) {",
152             "",
153             "    return r.data.in_queue || 0;",
154             "}"
155            ],
156            "$ xns" : "Roo.grid",
157            "* prop" : "colModel[]",
158            "dataIndex" : "in_queue",
159            "header" : "In Queue",
160            "width" : 150,
161            "xtype" : "ColumnModel"
162           },
163           {
164            "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y  H:i:s') : ''); }",
165            "$ xns" : "Roo.grid",
166            "* prop" : "colModel[]",
167            "dataIndex" : "last_send",
168            "header" : "Last Sent",
169            "width" : 120,
170            "xtype" : "ColumnModel"
171           }
172          ],
173          "listeners" : {
174           "rowclick" : [
175            "function (_self, rowIndex, e)",
176            "{",
177            "    (function() { ",
178            "        _this.bgrid.footer.onClick('first');",
179            "    }).defer(100);",
180            "}"
181           ],
182           "|render" : [
183            "function() ",
184            "{",
185            "    _this.sgrid = this; ",
186            "    //_this.dialog = Pman.Dialog.FILL_IN",
187            "    if (_this.spanel.active) {",
188            "       this.footer.onClick('first');",
189            "    }",
190            "}"
191           ],
192           "|rowdblclick" : [
193            "function (_self, rowIndex, e)",
194            "{",
195            "    ",
196            "    Pman.Dialog.AdminNotifySender.show(",
197            "         this.getDataSource().getAt(rowIndex).data, function() {",
198            "        _this.sgrid.footer.onClick('first');",
199            "    }); ",
200            "}",
201            ""
202           ]
203          },
204          "loadMask" : true,
205          "xtype" : "Grid"
206         }
207        ],
208        "listeners" : {
209         "|activate" : [
210          "function() {",
211          "    _this.spanel = this;",
212          "    if (_this.sgrid) {",
213          "        _this.sgrid.footer.onClick('first');",
214          "    }",
215          "}"
216         ]
217        },
218        "region" : "center",
219        "tableName" : "core_notify_sender",
220        "title" : "Senders",
221        "xtype" : "GridPanel"
222       },
223       {
224        "$ xns" : "Roo",
225        "Boolean background" : true,
226        "fitContainer" : true,
227        "fitToframe" : true,
228        "items" : [
229         {
230          "$ xns" : "Roo.grid",
231          "* prop" : "grid",
232          "autoExpandColumn" : "error_msg",
233          "items" : [
234           {
235            "$ xns" : "Roo",
236            "* prop" : "toolbar",
237            "items" : [
238             {
239              "$ xns" : "Roo.Toolbar",
240              "xtype" : "Fill"
241             },
242             {
243              "$ xns" : "Roo.Toolbar",
244              "String text" : "Remove",
245              "xtype" : "Button"
246             }
247            ],
248            "xtype" : "Toolbar"
249           },
250           {
251            "$ sortInfo" : "{ field : 'person_id_name', direction: 'ASC' }",
252            "$ xns" : "Roo.data",
253            "* prop" : "dataSource",
254            "items" : [
255             {
256              "$ url" : "baseURL + '/Roo/core_notify_sender_blacklist'",
257              "$ xns" : "Roo.data",
258              "* prop" : "proxy",
259              "method" : "GET",
260              "xtype" : "HttpProxy"
261             },
262             {
263              "$ xns" : "Roo.data",
264              "* prop" : "reader",
265              "id" : "id",
266              "root" : "data",
267              "totalProperty" : "total",
268              "xtype" : "JsonReader"
269             }
270            ],
271            "listeners" : {
272             "beforeload" : [
273              "function (_self, opts)",
274              "{",
275              "    if(!_this.sgrid.getSelectionModel().getSelected()) {",
276              "        return false;",
277              "    }",
278              "    ",
279              "    opts.params.sender_id =    _this.sgrid.getSelectionModel().getSelected().data.id;",
280              "}"
281             ]
282            },
283            "remoteSort" : true,
284            "xtype" : "Store"
285           },
286           {
287            "$ xns" : "Roo",
288            "* prop" : "footer",
289            "displayInfo" : true,
290            "displayMsg" : "Displaying Blacklists {0} - {1} of {2}",
291            "emptyMsg" : "No Blacklists found",
292            "pageSize" : 25,
293            "xtype" : "PagingToolbar"
294           },
295           {
296            "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }",
297            "$ xns" : "Roo.grid",
298            "* prop" : "colModel[]",
299            "dataIndex" : "added_dt",
300            "header" : "Added",
301            "width" : 120,
302            "xtype" : "ColumnModel"
303           },
304           {
305            "$ xns" : "Roo.grid",
306            "* prop" : "colModel[]",
307            "dataIndex" : "domain_id_domain",
308            "header" : "Domain",
309            "width" : 150,
310            "xtype" : "ColumnModel"
311           },
312           {
313            "$ xns" : "Roo.grid",
314            "* prop" : "colModel[]",
315            "dataIndex" : "error_str",
316            "header" : "Error",
317            "width" : 150,
318            "xtype" : "ColumnModel"
319           }
320          ],
321          "listeners" : {
322           "|render" : [
323            "function() ",
324            "{",
325            "    _this.bgrid = this; ",
326            "    //_this.dialog = Pman.Dialog.FILL_IN",
327            "    ",
328            "}"
329           ]
330          },
331          "loadMask" : true,
332          "xtype" : "Grid"
333         }
334        ],
335        "listeners" : {
336         "|activate" : [
337          "function() {",
338          "    _this.bpanel = this;",
339          "   ",
340          "}"
341         ]
342        },
343        "region" : "south",
344        "tableName" : "core_notify_recur",
345        "title" : "Recurrent Notifications",
346        "xtype" : "GridPanel"
347       }
348      ],
349      "xtype" : "BorderLayout"
350     }
351    ],
352    "xtype" : "NestedLayoutPanel"
353   }
354  ],
355  "modOrder" : "910",
356  "name" : "Pman.Tab.AdminNotifySender",
357  "parent" : "Pman.Tab.AdminWatchNotify",
358  "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminNotifySender.bjs",
359  "permname" : "",
360  "strings" : {
361   "1063e38cb53d94d386f21227fcd84717" : "Remove",
362   "1203cd27e4d1ab6f1296728c021d9c1a" : "Is Active",
363   "2023301a71db57f37d50da7d045b881a" : "Displaying Servers {0} - {1} of {2}",
364   "2ddb157d4780e8883fbde96f354c57d2" : "Displaying Blacklists {0} - {1} of {2}",
365   "774ff60df30a64fad1d29f6c2daa8691" : "No Servers found",
366   "902b0d55fddef6f8d651fe1035b7d4bd" : "Error",
367   "b26686c0a708faee42861d8b905e882e" : "Last Sent",
368   "be6838286e448ad65c5b55d690e2c38b" : "In Queue",
369   "c348b06d2667edd048ded3c1b1878cc1" : "Recurrent Notifications",
370   "c5dd93dd1011986763b5925e0af25e08" : "No Blacklists found",
371   "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
372   "def36b726efed529b13ba240dd331a12" : "Pool",
373   "eae639a70006feff484a39363c977e24" : "Domain",
374   "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
375   "ed93b54403043468c325323b79c676e2" : "Senders",
376   "f29ddbfb905eb2593fdcdfb243f9af85" : "Added",
377   "f8981aa743c09c2778adafe34ba52d62" : "Notify Senders"
378  },
379  "title" : ""
380 }