Pman.Tab.BAdminLogEvents.bjs wip_alan_T6900_fix_other_grids
authorAlan Knowles <alan@roojs.com>
Tue, 27 Jul 2021 09:49:15 +0000 (17:49 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Jul 2021 09:49:15 +0000 (17:49 +0800)
Pman.Tab.BAdminLogEvents.js
templates/Pman.Tab.BAdminLogEvents.html

Pman.Tab.BAdminLogEvents.bjs
Pman.Tab.BAdminLogEvents.js
templates/Pman.Tab.BAdminLogEvents.html

index 505b376..8c79ec2 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Tab.BAdminLogEvents",
  "parent" : "Pman.Tab.BAdminLogs",
  "title" : "Pman.Tab.BAdminLogEvents",
- "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.BAdminLogEvents.bjs",
+ "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.BAdminLogEvents.bjs",
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
      "items" : [
       {
        "String tabPosition" : "top",
-       "xtype" : "Region",
        "Boolean hideTabs" : true,
+       "xtype" : "Region",
        "$ xns" : "Roo.bootstrap.layout",
        "* prop" : "center"
       },
       {
        "String tabPosition" : "top",
-       "xtype" : "Region",
        "Boolean hideTabs" : true,
+       "xtype" : "Region",
        "Number height" : 150,
        "string cls" : "event-south-pane",
        "$ xns" : "Roo.bootstrap.layout",
           "render" : "function (_self)\n{\n    _this.table = _self;\n    \n    if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {\n        this.colModel.setHidden(this.colModel.findColumnIndex('id'), true);\n        this.colModel.setHidden(this.colModel.findColumnIndex('on_table'), true);\n        this.colModel.setHidden(this.colModel.findColumnIndex('ipaddr'), true);\n        this.colModel.getColumnByDataIndex('remarks').md = 7;\n        this.colModel.getColumnByDataIndex('remarks').sm = 7;\n        this.colModel.getColumnByDataIndex('remarks').xs = 7;\n    }\n    \n}"
          },
          "String cls" : "table-fixed",
-         "boolean hover" : true,
          "boolean striped" : false,
+         "boolean hover" : true,
          "xtype" : "Table",
-         "boolean responsive" : true,
          "Boolean rowSelection" : true,
          "$ xns" : "Roo.bootstrap",
          "Boolean loadMask" : true,
             "beforeload" : "function (_self, o)\n{\n    if (!Pman.buildCompleted) {\n        return false;\n    }\n    \n    o.params = o.params || {};\n    \n    o.params.person_id = _this.personSel.getValue();\n    \n    var act = _this.actionSel.getValue();\n    \n    if (act.length) {\n        \n        o.params.action = act;\n        \n    }\n    var tbl = _this.affectSel.getValue();\n    \n    if (tbl.length) {\n    \n        o.params.on_table = tbl;\n        \n    }\n    \n    var f = _this.dateFrom.getValue().split(\"/\");\n    \n    var df_string = f[2]+\"-\"+f[0]+\"-\"+f[1];\n    \n    var df = new Date(Date.parse(f));\n    \n    var t = _this.dateTo.getValue().split(\"/\");\n        \n    var dt_string = t[2]+\"-\"+t[0]+\"-\"+t[1];\n    \n    var dt = new Date(Date.parse(t));\n    \n    if (\n        _this.dateFrom.format && \n        \n        _this.dateTo.format &&\n        \n        (dt > df)\n    ) {\n        o.params['query[from]'] = df_string;\n        \n        o.params['query[to]'] = dt_string;\n        \n    }\n    \n}",
             "load" : "function (_self, records, options)\n{\n    //Roo.log(records);\n}"
            },
+           "boolean hover" : true,
            "boolean striped" : true,
            "$ Object sortInfo" : "{ field: 'event_when', direction: 'DESC'}",
-           "boolean hover" : true,
            "xtype" : "Store",
            "Boolean rowSelection" : true,
            "boolean remoteSort" : true,
             "render" : "function (_self)\n{\n    _this.footer = _self;\n}"
            },
            "Number pageSize" : 25,
-           "Boolean displayInfo" : false,
            "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
+           "Boolean displayInfo" : false,
            "xtype" : "PagingToolbar",
            "String emptyMsg" : "No Companies found",
            "$ xns" : "Roo.bootstrap",
           },
           {
            "String header" : "When",
-           "Number md" : 2,
            "String dataIndex" : "event_when",
+           "Number md" : 2,
            "xtype" : "ColumnModel",
            "Number xs" : 2,
            "$ xns" : "Roo.grid",
           },
           {
            "String header" : "#id",
-           "Number md" : 1,
            "String dataIndex" : "id",
+           "Number md" : 1,
            "xtype" : "ColumnModel",
            "Number xs" : 1,
            "$ xns" : "Roo.grid",
           },
           {
            "String header" : "Person",
-           "Number md" : 2,
            "String dataIndex" : "person_id_name",
+           "Number md" : 2,
            "xtype" : "ColumnModel",
            "Number xs" : 2,
            "$ xns" : "Roo.grid",
           },
           {
            "String header" : "Action",
-           "Number md" : 1,
            "String dataIndex" : "action",
+           "Number md" : 1,
            "xtype" : "ColumnModel",
            "Number xs" : 1,
            "$ xns" : "Roo.grid",
           },
           {
            "String header" : "IP",
-           "Number md" : 1,
            "String dataIndex" : "ipaddr",
+           "Number md" : 1,
            "xtype" : "ColumnModel",
            "Number xs" : 1,
            "$ xns" : "Roo.grid",
           },
           {
            "String header" : "Affected",
-           "Number md" : 1,
            "String dataIndex" : "on_table",
+           "Number md" : 1,
            "xtype" : "ColumnModel",
            "Number xs" : 1,
            "$ xns" : "Roo.grid",
           },
           {
            "String header" : "Remarks",
-           "Number md" : 4,
            "String dataIndex" : "remarks",
+           "Number md" : 4,
            "xtype" : "ColumnModel",
            "Number xs" : 4,
            "$ xns" : "Roo.grid",
index e4b07cd..992ada4 100644 (file)
@@ -990,7 +990,6 @@ Pman.Tab.BAdminLogEvents = new Roo.XComponent({
        cls : 'table-fixed',
        hover : true,
        loadMask : true,
-       responsive : true,
        rowSelection : true,
        striped : false,
        listeners : {
index 0a67a0c..b01a67d 100644 (file)
                     </DIV>
                   </DIV>
                   <DIV xbuilderid="roo-comp-1031" class="table-fixed table-fixed roo-layout-component-panel" style="width: 983px; height: 327px;">
-                    <TABLE class="table table-body-fixed table-hover table-responsive table-fixed">
+                    <TABLE class="table table-body-fixed table-hover table-fixed">
                       <THEAD xbuilderid="roo-gen435">
                         <TR>
-                          <TH class="x-hcol-0 sortable col-xs-2 col-2 col-sm-2 col-md-2" style="" sort="event_when" xbuilderid="roo-gen437">
+                          <TH class="x-hcol-0 sortable" style="" sort="event_when" xbuilderid="roo-gen437">
                             <I class="fa"></I>When 
                             <SPAN class="x-grid-split x-grid-split-0"></SPAN>
                           </TH>
-                          <TH class="x-hcol-1 sortable col-xs-1 col-1 col-sm-1 col-md-1" style="" sort="id" xbuilderid="roo-gen438">
+                          <TH class="x-hcol-1 sortable" style="" sort="id" xbuilderid="roo-gen438">
                             <I class="fa"></I>#id 
                             <SPAN class="x-grid-split x-grid-split-1"></SPAN>
                           </TH>
-                          <TH class="x-hcol-2 sortable col-xs-2 col-2 col-sm-2 col-md-2" style="" sort="person_id_name" xbuilderid="roo-gen439">
+                          <TH class="x-hcol-2 sortable" style="" sort="person_id_name" xbuilderid="roo-gen439">
                             <I class="fa"></I>Person 
                             <SPAN class="x-grid-split x-grid-split-2"></SPAN>
                           </TH>
-                          <TH class="x-hcol-3 col-xs-1 col-1 col-sm-1 col-md-1" style="" sort="action">Action 
+                          <TH class="x-hcol-3" style="" sort="action">Action 
                             <SPAN class="x-grid-split x-grid-split-3"></SPAN>
                           </TH>
-                          <TH class="x-hcol-4 col-xs-1 col-1 col-sm-1 col-md-1" style="" sort="ipaddr">IP 
+                          <TH class="x-hcol-4" style="" sort="ipaddr">IP 
                             <SPAN class="x-grid-split x-grid-split-4"></SPAN>
                           </TH>
-                          <TH class="x-hcol-5 col-xs-1 col-1 col-sm-1 col-md-1" style="" sort="on_table">Affected 
+                          <TH class="x-hcol-5" style="" sort="on_table">Affected 
                             <SPAN class="x-grid-split x-grid-split-5"></SPAN>
                           </TH>
-                          <TH class="x-hcol-6 col-xs-4 col-4 col-sm-4 col-md-4" style="" sort="remarks">Remarks 
+                          <TH class="x-hcol-6" style="" sort="remarks">Remarks 
                             <SPAN class="x-grid-split x-grid-split-6"></SPAN>
                           </TH>
                         </TR>
                       </THEAD>
-                      <TBODY xbuilderid="roo-gen434" style="width: 983px; height: 219px;">
+                      <TBODY xbuilderid="roo-gen434" style="width: 983px; height: 170px;">
                         <TR xbuilderid="roo-gen489" style="width: 983px;">
                           <TD colspan="7"></TD>
                         </TR>
                           <TD colspan="7" xbuilderid="roo-gen488" style="width: 983px;">
                             <DIV class="navbar roo-navbar-simple navbar-light bg-light" xbuilderid="roo-comp-1032" name="footer">
                               <UL class="nav nav-PagingToolbar navbar-nav"></UL>
-                              <DIV class="x-dlg-mask" xbuilderid="roo-gen443" style="width: 32px; height: 16px; display: none;"></DIV>
+                              <DIV class="x-dlg-mask" xbuilderid="roo-gen443" style="width: 1492px; height: 16px; display: none;"></DIV>
                               <DIV class="btn-group pagination" xbuilderid="roo-comp-1033">
                                 <BUTTON class="btn roo-button btn-outline-secondary btn-default prev btn-outline-secondary" disabled="disabled" xbuilderid="roo-comp-1034" tooltip="First Page">
                                   <SPAN class="roo-button-text"> <I class="fa fa-step-backward"></I></SPAN>