sync
[Pman.Admin] / Pman.Tab.AdminSettings.bjs
1 {
2  "name" : "Pman.Tab.AdminSettings",
3  "parent" : "Pman.Tab.Admin",
4  "title" : "",
5  "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminSettings.bjs",
6  "permname" : "",
7  "modOrder" : "600",
8  "strings" : {
9   "7e17f8478e121357b78646ca5b5d5ac9" : "Displaying Settings  {0} - {1} of {2}",
10   "689202409e48743b914713f96d93947c" : "Value",
11   "e4709a73a287a5f033f5b1b5142cb74d" : "System Settings",
12   "662de0725ac8055bff7edae51fbf3c78" : "No Settings Found",
13   "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
14   "e55f75a29310d7b60f7ac1d390c8ae42" : "Module",
15   "49ee3087348e8d44e1feda1917443987" : "Name",
16   "b5a7adde1af5c87d7fd797b6245c2a39" : "Description"
17  },
18  "items" : [
19   {
20    "listeners" : {
21     "|activate" : "function() {\n    _this.panel = this;\n \n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
22    },
23    "fitToframe" : true,
24    "background" : true,
25    "region" : "center",
26    "title" : "System Settings",
27    "xtype" : "GridPanel",
28    "fitContainer" : true,
29    "$ xns" : "Roo",
30    "items" : [
31     {
32      "listeners" : {
33       "|rowdblclick" : "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) {\n         return;\n     }\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('refresh');\n    }); \n}\n",
34       "|render" : "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
35      },
36      "autoExpandColumn" : "val",
37      "xtype" : "Grid",
38      "loadMask" : true,
39      "$ xns" : "Roo.grid",
40      "* prop" : "grid",
41      "items" : [
42       {
43        "listeners" : {
44         "beforeload" : "function (_self, o)\n{\n  \n    o.params = o.params ? o.params : {};\n    \n   \n}"
45        },
46        "xtype" : "Store",
47        "remoteSort" : true,
48        "$ sortInfo" : "{ field : 'name', direction: 'ASC' }",
49        "$ xns" : "Roo.data",
50        "* prop" : "dataSource",
51        "items" : [
52         {
53          "$ url" : "baseURL + '/Roo/core_setting'",
54          "xtype" : "HttpProxy",
55          "method" : "GET",
56          "$ xns" : "Roo.data",
57          "* prop" : "proxy"
58         },
59         {
60          "id" : "id",
61          "root" : "data",
62          "xtype" : "JsonReader",
63          "$ xns" : "Roo.data",
64          "* prop" : "reader",
65          "totalProperty" : "total"
66         }
67        ]
68       },
69       {
70        "pageSize" : 25,
71        "xtype" : "PagingToolbar",
72        "emptyMsg" : "No Settings Found",
73        "$ xns" : "Roo",
74        "displayMsg" : "Displaying Settings  {0} - {1} of {2}",
75        "displayInfo" : true,
76        "* prop" : "footer"
77       },
78       {
79        "xtype" : "Toolbar",
80        "$ xns" : "Roo",
81        "* prop" : "toolbar",
82        "items" : [
83         {
84          "xtype" : "Fill",
85          "$ xns" : "Roo.Toolbar"
86         },
87         {
88          "listeners" : {
89           "|click" : "function()\n{\n     Pman.genericDelete(_this, 'core_setting'); \n}\n        "
90          },
91          "text" : "Delete",
92          "xtype" : "Button",
93          "cls" : "x-btn-text-icon",
94          "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
95          "$ xns" : "Roo.Toolbar"
96         }
97        ]
98       },
99       {
100        "xtype" : "ColumnModel",
101        "sortable" : true,
102        "header" : "Module",
103        "width" : 120,
104        "$ xns" : "Roo.grid",
105        "* prop" : "colModel[]",
106        "dataIndex" : "module"
107       },
108       {
109        "xtype" : "ColumnModel",
110        "width" : 150,
111        "header" : "Name",
112        "$ renderer" : "function(v) { return String.format('{0}', v); }",
113        "$ xns" : "Roo.grid",
114        "* prop" : "colModel[]",
115        "dataIndex" : "name"
116       },
117       {
118        "xtype" : "ColumnModel",
119        "sortable" : true,
120        "header" : "Description",
121        "width" : 150,
122        "$ renderer" : "function(v) { return String.format('{0}', v); }",
123        "$ xns" : "Roo.grid",
124        "* prop" : "colModel[]",
125        "dataIndex" : "description"
126       },
127       {
128        "xtype" : "ColumnModel",
129        "sortable" : true,
130        "header" : "Value",
131        "width" : 200,
132        "$ renderer" : "function(v) { return String.format('{0}', v); }",
133        "$ xns" : "Roo.grid",
134        "* prop" : "colModel[]",
135        "dataIndex" : "val"
136       },
137       {
138        "listeners" : {
139         "afterselectionchange" : "function (_self)\n{\n    // load project members.\n}"
140        },
141        "xtype" : "RowSelectionModel",
142        "singleSelect" : true,
143        "$ xns" : "Roo.grid",
144        "* prop" : "sm"
145       }
146      ]
147     }
148    ]
149   }
150  ]
151 }