Pman.Tab.AdminNotify.bjs
[Pman.Admin] / Pman.Tab.AdminNotify.bjs
index 534562a..d107577 100644 (file)
@@ -1,5 +1,5 @@
 {
-    "id": "roo-file-157",
+    "id": "roo-file-210",
     "name": "Pman.Tab.AdminNotify",
     "parent": "Pman.Tab.AdminWatchNotify",
     "title": "Pman.Tab.AdminNotify",
                                     "|xns": "Roo.Toolbar",
                                     "xtype": "Fill"
                                 },
+                                {
+                                    "listeners": {
+                                        "|click": "function()\n        {\n        Pman.genericDelete(_this, 'core_notify'); \n        }\n        "
+                                    },
+                                    "cls": "x-btn-text-icon",
+                                    "text": "Delete",
+                                    "xtype": "Button",
+                                    "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
+                                    "|xns": "Roo.Toolbar"
+                                },
                                 {
                                     "listeners": {
                                         "render": "function (_self)\n{\n    _this.toggleBtn = _self;\n}",
                             "*prop": "colModel[]",
                             "dataIndex": "person_id_name",
                             "header": "Who to notify",
-                            "width": 200,
+                            "width": 100,
+                            "xtype": "ColumnModel",
+                            "|renderer": "function(v,x,r) {\n     return String.format('{0} <u>&lt;{1}&gt;</u>', v, r.data.person_id_email); \n }",
+                            "|xns": "Roo.grid"
+                        },
+                        {
+                            "*prop": "colModel[]",
+                            "dataIndex": "trigger_event_id",
+                            "header": "Triggered by",
+                            "width": 100,
                             "xtype": "ColumnModel",
                             "|renderer": "function(v,x,r) {\n     return String.format('{0} <u>&lt;{1}&gt;</u>', v, r.data.person_id_email); \n }",
                             "|xns": "Roo.grid"
                             "header": "Event",
                             "width": 300,
                             "xtype": "ColumnModel",
-                            "|renderer": "function(v) { return String.format('{0}', v); }",
+                            "|renderer": "function(v) { return String.format('<span qtip=\"{0}\">{0}</span>', v); }",
                             "|xns": "Roo.grid"
                         }
                     ]