"items" : [
{
"xtype" : "LayoutRegion",
- "tabPosition" : "top",
"$ xns" : "Roo",
+ "tabPosition" : "top",
"* prop" : "center"
},
{
"xtype" : "LayoutRegion",
- "width" : 200,
"$ xns" : "Roo",
+ "width" : 200,
"* prop" : "west"
},
{
"listeners" : {
"|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.ds.load({});\n }\n}"
},
+ "fitToframe" : true,
"background" : true,
"region" : "west",
- "fitToframe" : true,
"title" : "Groups",
"xtype" : "GridPanel",
"fitContainer" : true,
"|render" : "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.Groups;\n if (_this.panel.active) {\n _this.grid.ds.load({});\n }\n}"
},
"autoExpandColumn" : "name",
- "enableDrop" : true,
"xtype" : "Grid",
+ "enableDrop" : true,
"ddGroup" : "groupDD",
"loadMask" : true,
"$ xns" : "Roo.grid",
"items" : [
{
"$ url" : "baseURL + '/Roo/Groups.php'",
- "method" : "GET",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"xtype" : "ColumnModel",
- "header" : "Name",
"width" : 200,
+ "header" : "Name",
"$ renderer" : "function(v,x,r) { \n if (r.data.id == -1) {\n return '<b>' + \"Not in a Group\" + '</b>';\n }\n if ((r.data.id == 0) && (_this.type == 0)) {\n return '<b>' + \"All Staff (Default Permissions)\" + '</b>';\n }\n if ((r.data.id == 0) && (_this.type == 2)) {\n return '<b>' + \"Everybody\" + '</b>';\n }\n if (r.data.id == 0) {\n return '<b>' + \"All Staff\" + '</b>';\n }\n if (v == 'Administrators') {\n return '<b>' + \"Adminstrators\" + '</b>';\n }\n if (r.data.leader) {\n return v + ' (' + r.data.leader_name + ')';\n }\n \n return v;\n}",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",