"name" : "Pman.Tab.BAdminCompany",
"parent" : "Pman.Tab.BAdmin",
"title" : "",
- "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.BAdminCompany.bjs",
+ "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.BAdminCompany.bjs",
"permname" : "",
"modOrder" : "002",
"strings" : {
"dd7bf230fde8d4836917806aff6a6b27" : "Address",
"9810aa2b9f44401be4bf73188ef2b67d" : "Fax"
},
+ "named_strings" : {
+ "footer_displayMsg" : "155ca6a755e25c15ad7ce45e2f638f10",
+ "footer_emptyMsg" : "fc6f97505d89fe9277965c126744647a"
+ },
"items" : [
{
"xtype" : "Nest",
{
"xtype" : "NavItem",
"$ xns" : "Roo.bootstrap",
- "String style" : "float: left",
"items" : [
{
- "listeners" : {
- "click" : "function (_self, e)\n{\n Pman.Dialog.BAdminCompany.show({}, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n }); \n}"
- },
- "String weight" : "default",
- "xtype" : "Button",
- "$ xns" : "Roo.bootstrap",
- "String html" : "<i class=\"fa fa-plus\"></i> Add",
- "String style" : "margin: 10px;"
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.edit_btn = this;\n \n this.hide();\n}",
- "click" : "function (_self, e)\n{\n var s = _this.table.getSelectionModel().getSelected();\n \n if (!s || s.data.id * 1 < 1) {\n Roo.bootstrap.MessageBox.alert(\"Error\", 'Please select a company');\n return;\n }\n \n Pman.Dialog.BAdminCompany.show({\n id : s.data.id\n }, function() {\n if (_this.table) {\n _this.table.footer.onClick('refresh');\n }\n });\n \n \n}"
- },
- "String weight" : "default",
- "xtype" : "Button",
- "$ xns" : "Roo.bootstrap",
- "String html" : "<i class=\"fa fa-edit\"></i> Edit",
- "String style" : "margin: 10px;"
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.delete_btn = this;\n \n this.hide();\n}",
- "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.grid, 'core_company'); \n}"
- },
- "String weight" : "primary",
- "xtype" : "Button",
+ "xtype" : "Element",
"$ xns" : "Roo.bootstrap",
- "String html" : "<i class=\"fa fa-trash\"></i> Delete",
- "String style" : "margin: 10px;"
+ "items" : [
+ {
+ "String cls" : "roo-toolbar",
+ "xtype" : "Row",
+ "$ xns" : "Roo.bootstrap",
+ "items" : [
+ {
+ "Number md" : 12,
+ "xtype" : "Column",
+ "$ xns" : "Roo.bootstrap",
+ "items" : [
+ {
+ "listeners" : {
+ "click" : "function (_self, e)\n{\n Pman.Dialog.BAdminCompany.show({}, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n }); \n}"
+ },
+ "String cls" : "roo-toolbar-button",
+ "String weight" : "default",
+ "xtype" : "Button",
+ "$ xns" : "Roo.bootstrap",
+ "String html" : "<i class=\"fa fa-plus\"></i> Add"
+ },
+ {
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.edit_btn = this;\n \n this.hide();\n}",
+ "click" : "function (_self, e)\n{\n var s = _this.table.getSelectionModel().getSelected();\n \n if (!s || s.data.id * 1 < 1) {\n Roo.bootstrap.MessageBox.alert(\"Error\", 'Please select a company');\n return;\n }\n \n Pman.Dialog.BAdminCompany.show({\n id : s.data.id\n }, function() {\n if (_this.table) {\n _this.table.footer.onClick('refresh');\n }\n });\n \n \n}"
+ },
+ "String cls" : "roo-toolbar-button",
+ "String weight" : "default",
+ "xtype" : "Button",
+ "$ xns" : "Roo.bootstrap",
+ "String html" : "<i class=\"fa fa-edit\"></i> Edit"
+ },
+ {
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.delete_btn = this;\n \n this.hide();\n}",
+ "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.grid, 'core_company'); \n}"
+ },
+ "String cls" : "roo-toolbar-button",
+ "String weight" : "primary",
+ "xtype" : "Button",
+ "$ xns" : "Roo.bootstrap",
+ "String html" : "<i class=\"fa fa-trash\"></i> Delete"
+ }
+ ]
+ }
+ ]
+ }
+ ]
}
]
}
"boolean striped" : false,
"boolean hover" : true,
"xtype" : "Table",
- "boolean responsive" : true,
"Boolean rowSelection" : true,
"$ xns" : "Roo.bootstrap",
"Boolean loadMask" : true,
},
{
"listeners" : {
- "beforeload" : "function (_self, options)\n{\n options.params = options.params || {};\n}",
+ "beforeload" : "function (_self, options)\n{\n if (!Pman.buildCompleted) {\n return false;\n }\n \n options.params = options.params || {};\n}",
"load" : "function (_self, records, options)\n{\n _this.delete_btn.hide();\n _this.edit_btn.hide();\n}"
},
"boolean hover" : true,