Fix #6494 - translations code for reports
[Pman.Admin] / Pman.Tab.AdminNotify.bjs
index 4abcc5a..6c22e97 100644 (file)
   "e4b478c05a833569833f9cc63b6c4354" : "Displaying core_notify{0} - {1} of {2}",
   "4c3880bb027f159e801041b1021e88e8" : "Method",
   "a4ecfc70574394990cf17bd83df499f7" : "Event",
+  "12ea1a38991aa3bc4992b10adac0f3bc" : "Event Details",
   "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
   "f821027bade4aa6b7a4191cd1676cf41" : "Show Completed"
  },
  "items" : [
   {
+   "listeners" : {
+    "render" : "function (_self)\n{\n    _this.nest = this;\n}"
+   },
    "xtype" : "NestedLayoutPanel",
    "$ xns" : "Roo",
    "String region" : "center",
    "String title" : "Current Notifications",
+   "Boolean background" : false,
    "items" : [
     {
      "xtype" : "BorderLayout",
       {
        "autoScroll" : true,
        "xtype" : "LayoutRegion",
+       "String collapsedTitle" : "View Details",
        "$ xns" : "Roo",
        "Boolean collapsible" : true,
        "split" : true,
+       "String title" : "Event Details",
        "height" : 150,
        "* prop" : "south",
        "Boolean split" : true
@@ -79,7 +86,7 @@
          "items" : [
           {
            "listeners" : {
-            "beforeload" : "function (_self, options)\n{\n    options.params = options.params || {};\n    \n    options.params._evtype_align = 1;\n    \n    if (!_this.toggleBtn.pressed) {\n        options.params['event_id'] = 0;\n    }\n    if (!_this.personCombo) {\n        return false;\n    }\n    var p = _this.personCombo.getValue();\n    if (p*1) { \n        options.params.person_id = p;\n    }\n    \n    var from = _this.fromDateSel.getValue();\n    \n    if(from){\n        options.params.from = from.format('Y-m-d');\n    }\n    \n    var to = _this.toDateSel.getValue();\n    \n    if(to){\n        options.params.to = to.format('Y-m-d');\n    }\n    \n    var type = _this.typeCombo.getValue();\n    \n    if(type.length){\n        options.params.evtype = type;\n    }\n}"
+            "beforeload" : "function (_self, options)\n{\n    options.params = options.params || {};\n    \n    options.params._evtype_align = 1;\n    \n    if (!_this.toggleBtn.pressed) {\n        options.params['event_id'] = 0;\n    } else  {\n        options.params['!event_id'] = 0;\n    }\n    \n    if (!_this.personCombo) {\n        return false;\n    }\n    var p = _this.personCombo.getValue();\n    if (p*1) { \n        options.params.person_id = p;\n    }\n    \n    var from = _this.fromDateSel.getValue();\n    \n    if(from){\n        options.params.from = from.format('Y-m-d');\n    }\n    \n    var to = _this.toDateSel.getValue();\n    \n    if(to){\n        options.params.to = to.format('Y-m-d');\n    }\n    \n    var type = _this.typeCombo.getValue();\n    \n    if(type.length){\n        options.params.evtype = type;\n    }\n}"
            },
            "xtype" : "Store",
            "remoteSort" : true,
             }
            ]
           },
+          {
+           "listeners" : {
+            "afterselectionchange" : "function (_self)\n{\n    // load detail log in _this.viewPanel;\n    if (!this.getSelected()) {\n        this.viewPanel.setContent(\"Nothing Selected\");\n        return;\n    }\n    var id = this.getSelected().data.event_id;\n    if (id *1 < 1) {\n    \n       _this.viewPanel.setContent(\"No Event for this line\");    \n        return;\n    }\n    _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n    \n}"
+           },
+           "xtype" : "RowSelectionModel",
+           "singleSelect" : true,
+           "$ xns" : "Roo.grid",
+           "* prop" : "sm"
+          },
           {
            "pageSize" : 25,
            "xtype" : "PagingToolbar",
            "xtype" : "ColumnModel",
            "sortable" : true,
            "header" : "Method",
-           "width" : 100,
+           "width" : 70,
            "$ renderer" : "function(v,x,r) \n{ \n    var vv = (typeof(r.data.evtype_align) != 'undefined' && r.data.evtype_align) ? r.data.evtype_align : v;\n    return String.format('<span qtip=\"{0}\">{1}</span>', v, vv ); \n}",
            "$ xns" : "Roo.grid",
            "* prop" : "colModel[]",
            "xtype" : "ColumnModel",
            "sortable" : true,
            "header" : "Act when",
-           "width" : 150,
+           "width" : 130,
            "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y H:i:s') : ''); }",
            "$ xns" : "Roo.grid",
            "* prop" : "colModel[]",
            "xtype" : "ColumnModel",
            "sortable" : true,
            "header" : "Sent",
-           "width" : 150,
+           "width" : 130,
            "$ renderer" : "function(v,x,r) {\n    if (r.data.event_id *1 == 0) {\n        return '';\n    }\n     return String.format('{0}', v ? v.format('d/M/Y H:i:s') : '');\n  }",
            "$ xns" : "Roo.grid",
            "* prop" : "colModel[]",
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 200,
+           "width" : 50,
            "header" : "Msgid",
            "$ renderer" : "function(v) { return String.format('{0}', v); }",
            "$ xns" : "Roo.grid",