Pman.Dialog.CoreNotifyRecur.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.bjs
index 4826bad..a3c7055 100644 (file)
                                                 {
                                                     "*prop": "field",
                                                     "allowBlank": "false",
+                                                    "displayField": "tz",
                                                     "editable": true,
                                                     "emptyText": "Select timezone",
                                                     "fieldLabel": "core_enum",
                                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{tz}</b> </div>",
                                                     "triggerAction": "all",
                                                     "typeAhead": true,
-                                                    "valueField": "tz",
                                                     "width": 300,
                                                     "xtype": "ComboBox",
                                                     "|xns": "Roo.form",
                                     ]
                                 },
                                 {
-                                    "xtype": "ColumnModel",
-                                    "header": "Last event",
-                                    "width": 75,
+                                    "*prop": "colModel[]",
                                     "dataIndex": "last_event_id",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
+                                    "header": "Last Sent",
+                                    "width": 75,
+                                    "xtype": "ColumnModel",
+                                    "|renderer": "function(v) { return String.format('{0}', v ? v : 'never'); }",
+                                    "|xns": "Roo.grid"
                                 }
                             ]
                         }