Fix #6666 - paging upgrade to bs4
[Pman.BAdmin] / Pman.Tab.BAdminProject.bjs
diff --git a/Pman.Tab.BAdminProject.bjs b/Pman.Tab.BAdminProject.bjs
new file mode 100644 (file)
index 0000000..37f8477
--- /dev/null
@@ -0,0 +1,253 @@
+{
+ "name" : "Pman.Tab.BAdminProject",
+ "parent" : "Pman.Tab.BAdmin",
+ "title" : "",
+ "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.BAdminProject.bjs",
+ "permname" : "",
+ "modOrder" : "300",
+ "strings" : {
+  "54e1d44609e3abed11f6e1eb6ae54988" : "Projects",
+  "d7778d0c64b6ba21494c97f77a66885a" : "Filter",
+  "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
+  "689202409e48743b914713f96d93947c" : "Value",
+  "e57c636e4888ae64d98a590c6d530f25" : "Job No.",
+  "bfa40db99e13ed2fe413ea8f1507cda9" : "Permission Group",
+  "1a11b1adc359c03db0ca798a00e2632c" : "Opened",
+  "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
+  "49ee3087348e8d44e1feda1917443987" : "Name",
+  "dec0281615951933174d1bad72eeb180" : "Office / Team"
+ },
+ "items" : [
+  {
+   "xtype" : "Nest",
+   "$ xns" : "Roo.bootstrap.panel",
+   "String region" : "center",
+   "String title" : "Projects",
+   "items" : [
+    {
+     "xtype" : "Border",
+     "$ xns" : "Roo.bootstrap.layout",
+     "* prop" : "layout",
+     "items" : [
+      {
+       "xtype" : "Region",
+       "$ xns" : "Roo.bootstrap.layout",
+       "* prop" : "center"
+      },
+      {
+       "Number width" : 250,
+       "xtype" : "Region",
+       "$ xns" : "Roo.bootstrap.layout",
+       "* prop" : "west",
+       "Boolean split" : true
+      },
+      {
+       "xtype" : "Region",
+       "Number height" : 50,
+       "$ xns" : "Roo.bootstrap.layout",
+       "* prop" : "north"
+      },
+      {
+       "xtype" : "Content",
+       "String region" : "north",
+       "$ xns" : "Roo.bootstrap.panel",
+       "items" : [
+        {
+         "String type" : "pills",
+         "xtype" : "NavSimplebar",
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "String cls" : "mr-md-auto",
+           "xtype" : "Form",
+           "String align" : "right",
+           "$ xns" : "Roo.bootstrap",
+           "items" : [
+            {
+             "xtype" : "Input",
+             "$ xns" : "Roo.bootstrap"
+            },
+            {
+             "String weight" : "primary",
+             "xtype" : "Button",
+             "String fa" : "search",
+             "$ xns" : "Roo.bootstrap"
+            }
+           ]
+          },
+          {
+           "String type" : "pills",
+           "bool pilltype" : false,
+           "xtype" : "NavGroup",
+           "String align" : "right",
+           "$ xns" : "Roo.bootstrap",
+           "items" : [
+            {
+             "String button_weight" : "danger",
+             "String cls" : "ml-3 mr-0",
+             "xtype" : "NavItem",
+             "bool button_outline" : false,
+             "String fa" : "trash",
+             "$ xns" : "Roo.bootstrap",
+             "String html" : "Delete"
+            },
+            {
+             "listeners" : {
+              "click" : "function (e)\n{\n    Pman.Dialog.BAdminProject.show({});\n}"
+             },
+             "String button_weight" : "warning",
+             "String cls" : "ml-3 mr-0",
+             "xtype" : "NavItem",
+             "bool button_outline" : false,
+             "String fa" : "plus",
+             "$ xns" : "Roo.bootstrap",
+             "String html" : "Add"
+            }
+           ]
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "listeners" : {
+        "activate" : "function (_self)\n{\n  this.grid.ds.load({});\n}"
+       },
+       "xtype" : "Grid",
+       "$ xns" : "Roo.bootstrap.panel",
+       "String region" : "west",
+       "items" : [
+        {
+         "listeners" : {
+          "render" : "function (_self)\n{\n    _this.grid = this;\n}"
+         },
+         "boolean striped" : true,
+         "xtype" : "Table",
+         "Boolean rowSelection" : true,
+         "$ xns" : "Roo.bootstrap",
+         "* prop" : "grid",
+         "items" : [
+          {
+           "listeners" : {
+            "selectionchange" : "function (_self)\n{\n    _this.addBtn.hide();\n    _this.removeBtn.hide();\n\n    var s = this.getSelected();\n    if (!s) { return; }\n\n    _this.preview.setUrl( baseURL + '/Preview/' + s.data.id + '.html'); \n    \n    if (s.data.is_approved) { \n        _this.removeBtn.show();\n    } else {\n        _this.addBtn.show();\n    }\n    \n}"
+           },
+           "Boolean singleSelect" : true,
+           "xtype" : "RowSelectionModel",
+           "$ xns" : "Roo.bootstrap.Table",
+           "* prop" : "sm"
+          },
+          {
+           "$ Array fields" : "[ 'filter' , 'value' ]",
+           "$ Array data" : "[\n    [ 'Job No:', '' ],\n    [ 'Office:', '' ],\n    [ 'Team Leader:', '' ],\n    [ 'Status:', '' ] \n]",
+           "boolean isLocal" : true,
+           "xtype" : "SimpleStore",
+           "$ xns" : "Roo.data",
+           "* prop" : "store"
+          },
+          {
+           "String header" : "Filter",
+           "String dataIndex" : "filter",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]",
+           "Number sm" : 6
+          },
+          {
+           "String header" : "Value",
+           "String dataIndex" : "value",
+           "$ Function renderer" : "function(v,x,r) {\n    \n    return v;\n}",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]",
+           "Number sm" : 6
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "listeners" : {
+        "activate" : "function (_self)\n{\n    this.grid.ds.load({});\n}"
+       },
+       "xtype" : "Grid",
+       "String region" : "center",
+       "$ xns" : "Roo.bootstrap.panel",
+       "items" : [
+        {
+         "listeners" : {
+          "render" : "function (_self)\n{\n    _this.grid = this;\n}",
+          "rowclick" : "function (_self, el, rowIndex, e)\n{\n    Pman.Dialog.BAdminProject.show({});\n}"
+         },
+         "boolean striped" : true,
+         "xtype" : "Table",
+         "Boolean rowSelection" : true,
+         "$ xns" : "Roo.bootstrap",
+         "* prop" : "grid",
+         "items" : [
+          {
+           "listeners" : {
+            "selectionchange" : "function (_self)\n{\n \n}"
+           },
+           "Boolean singleSelect" : true,
+           "xtype" : "RowSelectionModel",
+           "$ xns" : "Roo.bootstrap.Table",
+           "* prop" : "sm"
+          },
+          {
+           "$ Array fields" : "[ 'filter' , 'value' ]",
+           "$ Array data" : "[\n    [ 'Project:', '' ],\n    [ 'ER No.:', '' ],\n    [ 'School Code:', '' ],\n    [ 'District:', '' ] \n]",
+           "boolean isLocal" : true,
+           "xtype" : "SimpleStore",
+           "$ xns" : "Roo.data",
+           "* prop" : "store"
+          },
+          {
+           "String header" : "Job No.",
+           "String dataIndex" : "fname",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]",
+           "Number sm" : 1
+          },
+          {
+           "String header" : "Name",
+           "String dataIndex" : "fname",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]",
+           "Number sm" : 5
+          },
+          {
+           "String header" : "Office / Team",
+           "String dataIndex" : "fname",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]",
+           "Number sm" : 2
+          },
+          {
+           "String header" : "Opened",
+           "String dataIndex" : "fname",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]",
+           "Number sm" : 2
+          },
+          {
+           "String header" : "Permission Group",
+           "String dataIndex" : "fname",
+           "xtype" : "ColumnModel",
+           "$ xns" : "Roo.grid",
+           "* prop" : "cm[]",
+           "Number sm" : 2
+          }
+         ]
+        }
+       ]
+      }
+     ]
+    }
+   ]
+  }
+ ]
+}
\ No newline at end of file