From d9106d6874760aaf49e3b6f2c71ae600c69bccd0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 14 Nov 2012 13:55:49 +0800 Subject: [PATCH] Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- Pman.Dialog.CoreNotifyRecur.bjs | 23 +++++++++++++++++++++++ Pman.Dialog.CoreNotifyRecur.js | 16 ++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index 004460b5..c285c06c 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -110,6 +110,29 @@ } ] }, + { + "*prop": "colModel[]", + "dataIndex": "method", + "header": "From", + "width": 75, + "xtype": "ColumnModel", + "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }", + "|xns": "Roo.grid", + "items": [ + { + "|xns": "Roo.grid", + "xtype": "GridEditor", + "*prop": "editor", + "items": [ + { + "|xns": "Roo.form", + "xtype": "DateField", + "*prop": "field" + } + ] + } + ] + }, { "*prop": "colModel[]", "dataIndex": "dtstart", diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index c7c92e85..4c22626e 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -275,6 +275,22 @@ Pman.Dialog.CoreNotifyRecur = { ] }, colModel : [ + { + xtype: 'ColumnModel', + xns: Roo.grid, + dataIndex : 'method', + header : 'From', + width : 75, + renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }, + editor : { + xtype: 'GridEditor', + xns: Roo.grid, + field : { + xtype: 'DateField', + xns: Roo.form + } + } + }, { xtype: 'ColumnModel', xns: Roo.grid, -- 2.39.2