15 "xtype" : "LayoutRegion"
23 "xtype" : "LayoutRegion"
28 "fitContainer" : true,
34 "autoExpandColumn" : "subject",
39 "singleSelect" : true,
40 "xtype" : "RowSelectionModel"
43 "$ sortInfo" : "{ field : 'description', direction: 'ASC' }",
45 "* prop" : "dataSource",
48 "$ url" : "baseURL + '/Roo/Core_email.php'",
58 " \"name\":\"name\",",
59 " \"type\":\"string\"",
62 " \"name\":\"subject\",",
63 " \"type\":\"string\"",
71 "totalProperty" : "total",
72 "xtype" : "JsonReader"
77 "function (_self, options)",
79 " options.params = options.params || {};",
81 " var s = _this.searchBox.getValue();",
84 " options.params['search[nameortitle]'] = s;",
97 "displayMsg" : "Displaying Message{0} - {1} of {2}",
98 "emptyMsg" : "Nothing found",
101 "$ xns" : "Roo.Toolbar",
107 "new Pman.Download({",
108 " url : baseURL + '/Roo/Core_email',",
115 "Roo.MessageBox.alert(\"Notice\", \"Should be downloading now\");",
121 "text" : "Download to Excel",
126 "xtype" : "PagingToolbar"
130 "* prop" : "toolbar",
133 "$ xns" : "Roo.form",
138 " _this.searchBox = _self;",
142 "function (_self, e)",
144 " _this.grid.footer.onClick('first');",
148 "xtype" : "TextField"
151 "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
152 "$ xns" : "Roo.Toolbar",
153 "cls" : "x-btn-icon",
156 "function (_self, e)",
158 " _this.grid.footer.onClick('first');",
165 "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
166 "$ xns" : "Roo.Toolbar",
167 "cls" : "x-btn-icon",
170 "function (_self, e)",
172 " _this.searchBox.setValue('');\r",
173 " _this.grid.footer.onClick('first');\r",
180 "$ xns" : "Roo.Toolbar",
184 "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
185 "$ xns" : "Roo.Toolbar",
186 "cls" : "x-btn-text-icon",
191 " var sel = _this.grid.selModel.getSelected();",
193 " Roo.MessageBox.alert(\"Error\", \"Select a message to copy\");",
196 "new Pman.Request({",
197 " url : baseURL + '/Roo/Core_email',",
200 " id : sel.data.id,",
203 " success : function() {",
204 " _this.grid.footer.onClick('refresh');",
216 "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
217 "$ xns" : "Roo.Toolbar",
218 "cls" : "x-btn-text-icon",
223 " if (!_this.dialog) {",
226 " _this.dialog.show( { id : 0, module : 'core_email' } , function() {",
227 " _this.grid.footer.onClick('first');",
237 "$ xns" : "Roo.Toolbar",
238 "xtype" : "Separator"
241 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
242 "$ xns" : "Roo.Toolbar",
243 "cls" : "x-btn-text-icon",
248 " Pman.genericDelete(_this, 'core_email');",
264 " if (r.data.description.length > 0) {",
265 " v = r.data.description;",
269 " if(r.data.active * 1 < 1){",
270 " return String.format('<s>{0}</s>', v ? v : ''); ",
273 " return String.format('{0}', v ? v : ''); ",
276 "$ xns" : "Roo.grid",
278 "Boolean sortable" : true,
279 "dataIndex" : "name",
282 "xtype" : "ColumnModel"
288 " if(r.data.active * 1 < 1){",
289 " return String.format('<s>{0}</s>', v ? v : ''); ",
292 " return String.format('{0}', v ? v : ''); ",
295 "$ xns" : "Roo.grid",
297 "Boolean sortable" : true,
298 "dataIndex" : "subject",
301 "xtype" : "ColumnModel"
304 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
305 "$ xns" : "Roo.grid",
307 "Boolean sortable" : true,
308 "dataIndex" : "from_name",
309 "header" : "From Name",
311 "xtype" : "ColumnModel"
314 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
315 "$ xns" : "Roo.grid",
317 "Boolean sortable" : true,
318 "dataIndex" : "from_email",
319 "header" : "From Email",
321 "xtype" : "ColumnModel"
324 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
325 "$ xns" : "Roo.grid",
327 "Boolean sortable" : true,
328 "dataIndex" : "bcc_group_name",
329 "header" : "BCC Group",
331 "xtype" : "ColumnModel"
336 "function (_self, rowIndex, e)",
338 " // _this.grid.ds.load({});",
339 " _this.viewPanel.view.store.load({});",
345 " _this.grid = this; ",
346 " _this.dialog = Pman.Dialog.CoreEmail;",
347 " if (_this.panel.active) {",
348 " _this.grid.footer.onClick('first');",
353 "function (_self, rowIndex, e)",
355 " if (!_this.dialog) { ",
358 " var data = this.getDataSource().getAt(rowIndex).data;",
359 " _this.dialog.show( {id : data.id, module : 'core_email'} , function() {",
360 " _this.grid.footer.onClick('first');",
373 " _this.panel = this;",
374 " if (_this.grid) {",
375 " _this.grid.footer.onClick('first');",
381 "tableName" : "core_email",
382 "title" : "core_email",
383 "xtype" : "GridPanel"
387 "Boolean autoScroll" : true,
388 "Boolean fitContainer" : true,
389 "Boolean fitToFrame" : true,
390 "background" : false,
393 "$ tpl" : "new Roo.DomTemplate({url : rootURL+'/Pman/Crm/domtemplates/crm_mail.html'})",
398 "$ xns" : "Roo.data",
402 "$ url" : "baseURL+'/Roo/Core_email.php'",
403 "$ xns" : "Roo.data",
406 "xtype" : "HttpProxy"
409 "$ xns" : "Roo.data",
413 "totalProperty" : "total",
414 "xtype" : "JsonReader"
419 "function (_self, options)",
421 " options.params = options.params || {};",
422 " var p = _this.grid.selModel.getSelected();",
423 " if (!p || !p.data.id) {",
424 " this.removeAll();",
428 " options.params['id'] = p.data.id;",
433 "function (_self, records, options)",
435 " var p = _this.grid.selModel.getSelected();",
437 " if (!p || !p.data.id) {",
438 " this.removeAll();",
450 "function (_self, data, i, rec)",
452 " // Roo.log(data);",
453 " //Roo.apply(data, rec.json);",
464 " _this.viewPanel = _self;",
469 "title" : "View Message",
470 "xtype" : "ContentPanel"
473 "xtype" : "BorderLayout"
480 " _this.nest = this;",
485 "title" : "Email Template",
486 "xtype" : "NestedLayoutPanel"
490 "name" : "Pman.Tab.AdminEmailTemplates",
491 "parent" : "Pman.Tab.Admin",
492 "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminEmailTemplates.bjs",
495 "00d6e06d2f3c092b4f5e1e708a360b0f" : "Displaying Message{0} - {1} of {2}",
496 "01bd6a16732dfa2b760dc8566c58afae" : "Download to Excel",
497 "49ee3087348e8d44e1feda1917443987" : "Name",
498 "4a4a8fe0c6dfb6bd2a41755d15eb6f0b" : "From Name",
499 "4ca679a383343ab3d4ca1cd7c91b43f7" : "From Email",
500 "5fb63579fc981698f97d55bfecb213ea" : "Copy",
501 "68b00d723d37122f64da8d9939f836f0" : "BCC Group",
502 "9076cbba1d9ef79280b4f39e2aa0d115" : "Nothing found",
503 "9e11143e29a031212f2cdefcf61f39e9" : "View Message",
504 "b78a3223503896721cca1303f776159b" : "Title",
505 "c7d299bf3f9e37c77ab646f7e5366696" : "core_email",
506 "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
507 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
508 "f49559cda3fb906fbd7736f8b8a0e37d" : "Email Template"
510 "title" : "Manage Email Templates"