From 943c20614b613becf07fa46b338d57cd884c60d0 Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 12 Jul 2018 17:14:49 +0800 Subject: [PATCH] Pman.Tab.AdminLogEvents.bjs Pman.Tab.AdminLogEvents.js --- Pman.Tab.AdminLogEvents.bjs | 28 ++++++++++++++-------------- Pman.Tab.AdminLogEvents.js | 15 +++++++++++++++ 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/Pman.Tab.AdminLogEvents.bjs b/Pman.Tab.AdminLogEvents.bjs index e3eaba2..8180c90 100644 --- a/Pman.Tab.AdminLogEvents.bjs +++ b/Pman.Tab.AdminLogEvents.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Tab.AdminLogEvents", "parent" : "Pman.Tab.AdminLogs", "title" : "Admin - Logs - Events", - "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminLogEvents.bjs", + "path" : "/home/benny/gitlive/Pman.Admin/Pman.Tab.AdminLogEvents.bjs", "permname" : "Admin.Logs", "modOrder" : "001", "strings" : { @@ -30,8 +30,8 @@ "items" : [ { "region" : "center", - "xtype" : "NestedLayoutPanel", "title" : "Events", + "xtype" : "NestedLayoutPanel", "$ xns" : "Roo", "items" : [ { @@ -65,9 +65,9 @@ "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" : "Events", "xtype" : "GridPanel", "fitContainer" : true, @@ -114,8 +114,8 @@ }, { "$ url" : "baseURL + '/Roo/Events.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" } @@ -247,8 +247,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/core_person'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -303,8 +303,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Events.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -359,8 +359,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Events.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -404,8 +404,8 @@ }, { "xtype" : "ColumnModel", - "header" : "When", "width" : 100, + "header" : "When", "$ renderer" : "function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -413,8 +413,8 @@ }, { "xtype" : "ColumnModel", - "header" : "#id", "width" : 100, + "header" : "#id", "$ xns" : "Roo.grid", "$ Boolean hidden" : "(function() {\n return typeof(Pman.Tab.AdminLogEvents.hide_cols) == 'undefined' ? \n false : \n ((Pman.Tab.AdminLogEvents.hide_cols.indexOf('id') > -1) ? true : false);\n})()", "* prop" : "colModel[]", @@ -422,8 +422,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Person", "width" : 150, + "header" : "Person", "$ renderer" : "function(v,x,r) { \n \n var ptable = _this.tableSel.getValue();\n \n var efield = 'person_id_email';\n var nfield = 'person_id_name'; \n \n if(\n ptable.length &&\n ptable != 'Person' &&\n typeof(r.data[ptable + '_id_email']) != 'undefined' &&\n typeof(r.data[ptable + '_id_name']) != 'undefined'\n ){\n efield = ptable + '_id_email';\n nfield = ptable + '_id_name'; \n }\n \n var email = r.data[efield]; // ? r.data.person_id_email : r.data.person_id_email;\n var name = r.data[nfield]; // ? r.data.person_id_name : r.data.person_id_name; \n return String.format('{0} <{1}>', \n name, email); \n\n\n}", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -431,8 +431,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "Action", + "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -440,8 +440,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "IP", + "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -449,8 +449,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Affected", "width" : 100, + "header" : "Affected", "$ renderer" : "function(v, x, r) { \n return v ? String.format('{0}({1})', v, r.data.on_id) : ''; \n }", "$ xns" : "Roo.grid", "$ Boolean hidden" : "(function() {\n return typeof(Pman.Tab.AdminLogEvents.hide_cols) == 'undefined' ? \n false : \n ((Pman.Tab.AdminLogEvents.hide_cols.indexOf('on_table') > -1) ? true : false);\n})()", @@ -459,8 +459,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Remarks", "width" : 300, + "header" : "Remarks", "$ renderer" : "function(v) { return String.format('{0}', v, Roo.util.Format.htmlEncode(v)); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", diff --git a/Pman.Tab.AdminLogEvents.js b/Pman.Tab.AdminLogEvents.js index 760b211..41b7847 100644 --- a/Pman.Tab.AdminLogEvents.js +++ b/Pman.Tab.AdminLogEvents.js @@ -29,6 +29,21 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({ '90e4ac2e5a22e53df63b6b186d8727ba' :"No Events found", '2c92a9a6a5dbf570825e62eabcdecd8d' :"Affected" }, + _named_strings : { + 'person_table_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'person_id_name_qtip' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ , + 'person_table_qtip' : '037fd50b0e85bb65995ca7125d06c7cd' /* Select Person Table */ , + 'person_table_emptyText' : '037fd50b0e85bb65995ca7125d06c7cd' /* Select Person Table */ , + 'person_id_name_emptyText' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ , + 'person_id_name_fieldLabel' : '40bed7cf9b3d4bb3a3d7a7e3eb18c5eb' /* Person */ , + 'on_table_qtip' : 'a8929eb5c1553d3f70497f862d25d0ce' /* Select Action */ , + 'on_table_emptyText' : '679308a758de538c5f39c4c6cdba6593' /* Select Affects */ , + 'action_emptyText' : 'a8929eb5c1553d3f70497f862d25d0ce' /* Select Action */ , + 'action_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'action_qtip' : 'a8929eb5c1553d3f70497f862d25d0ce' /* Select Action */ , + 'on_table_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'person_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ + }, part : ["Admin", "LogEvents" ], order : '001-Pman.Tab.AdminLogEvents', -- 2.39.2