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