"show" : "function (_self)\n{\n _this.grid.ds.load({});\n}"
},
"modal" : true,
- "title" : "Modify Recurrent Notifications",
"xtype" : "LayoutDialog",
+ "title" : "Modify Recurrent Notifications",
"width" : 800,
"$ xns" : "Roo",
- "resizable" : false,
+ "resizable" : true,
"height" : 550,
"items" : [
{
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n// _this.grid.footer.onClick('first');\n }\n}"
},
+ "region" : "center",
"fitToFrame" : true,
"background" : false,
- "region" : "center",
"title" : "core_notify_recur",
"xtype" : "GridPanel",
"fitContainer" : true,
"items" : [
{
"listeners" : {
- "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n",
"|render" : "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n // this.footer.onClick('first');\n }\n}",
"afteredit" : "function (e)\n{\n e.record.commit();\n}"
},
"items" : [
{
"$ url" : "baseURL + '/Roo/core_notify_recur.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"xtype" : "ColumnModel",
- "header" : "Type",
"width" : 120,
+ "header" : "Type",
"$ renderer" : "function(v,x,r) {\n return String.format('{0}', r.data.method_id_display_name); \n}",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
"items" : [
{
"$ url" : "baseURL + '/Roo/core_enum.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"xtype" : "ColumnModel",
- "header" : "From",
"width" : 75,
+ "header" : "From",
"$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
- "header" : "Until",
"width" : 75,
+ "header" : "Until",
"$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
+ "width" : 150,
"header" : "on day(s)",
- "width" : 100,
"$ renderer" : "function(v,x,r) { \n \n if (v.length) {\n \n var cm = _this.grid.colModel;\n \n var ci = cm.getColumnByDataIndex(this.name);\n \n var tv = [];\n var vals = Roo.decode(v);\n Roo.each(vals, function(k) {\n var r = this.findRecord(this.valueField, k);\n if(r){\n tv.push(r.data[this.displayField]);\n }else if(this.valueNotFoundText !== undefined){\n tv.push( this.valueNotFoundText );\n }\n },ci.editor.field);\n\n r.data[this.name + '_name'] = tv.join(', ');\n return String.format('{0}',tv.join(', '));\n\n \n \n }\n r.data[this.name + '_name'] = '';\n return String.format('{0}', r.data.freq_day_name || v); \n \n}",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
+ "width" : 100,
"header" : "at Hour(s)",
- "width" : 250,
"$ renderer" : "function(v,x,r) { \n \n \n if (v.length) {\n \n var cm = _this.grid.colModel;\n \n var ci = cm.getColumnByDataIndex(this.name);\n \n var tv = [];\n var vals = Roo.decode(v);\n Roo.each(vals, function(k) {\n var r = this.findRecord(this.valueField, k);\n if(r){\n tv.push(r.data[this.displayField]);\n }else if(this.valueNotFoundText !== undefined){\n tv.push( this.valueNotFoundText );\n }\n },ci.editor.field);\n\n r.data[this.name + '_name'] = tv.join(', ');\n return String.format('{0}',tv.join(', '));\n\n \n \n }\n r.data[this.name + '_name'] = '';\n return String.format('{0}', r.data.freq_hour_name || v); \n \n}",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
- "header" : "Timezone",
"width" : 100,
+ "header" : "Timezone",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
"items" : [
{
"$ url" : "baseURL + '/Core/I18n/Timezone.php'\n",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
}
]
},
- {
- "xtype" : "ColumnModel",
- "width" : 75,
- "header" : "Last Sent",
- "$ renderer" : "function(v) { return String.format('{0}', v ? v : 'never'); }",
- "$ xns" : "Roo.grid",
- "* prop" : "cm[]",
- "dataIndex" : "last_event_id"
- },
{
"xtype" : "ColumnModel",
"header" : "Last Sent",