_strings : {
'54e1d44609e3abed11f6e1eb6ae54988' :"Projects",
- 'd7778d0c64b6ba21494c97f77a66885a' :"Filter",
'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
- '689202409e48743b914713f96d93947c' :"Value",
'e57c636e4888ae64d98a590c6d530f25' :"Job No.",
'bfa40db99e13ed2fe413ea8f1507cda9' :"Permission Group",
'1a11b1adc359c03db0ca798a00e2632c' :"Opened",
xns : Roo.bootstrap.layout,
'|xns' : 'Roo.bootstrap.layout'
},
- west : {
- xtype : 'Region',
- split : true,
- width : 250,
- xns : Roo.bootstrap.layout,
- '|xns' : 'Roo.bootstrap.layout'
- },
north : {
xtype : 'Region',
height : 50,
}
]
},
- {
- xtype : 'Grid',
- region : 'west',
- listeners : {
- activate : function (_self)
- {
- this.grid.ds.load({});
- }
- },
- xns : Roo.bootstrap.panel,
- '|xns' : 'Roo.bootstrap.panel',
- grid : {
- xtype : 'Table',
- rowSelection : true,
- striped : true,
- listeners : {
- render : function (_self)
- {
- _this.grid = this;
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- store : {
- xtype : 'SimpleStore',
- data : [
- [ 'Job No:', '' ],
- [ 'Office:', '' ],
- [ 'Team Leader:', '' ],
- [ 'Status:', '' ]
- ],
- fields : [ 'filter' , 'value' ],
- isLocal : true,
- xns : Roo.data,
- '|xns' : 'Roo.data'
- },
- sm : {
- xtype : 'RowSelectionModel',
- singleSelect : true,
- listeners : {
- selectionchange : function (_self)
- {
- _this.addBtn.hide();
- _this.removeBtn.hide();
-
- var s = this.getSelected();
- if (!s) { return; }
-
- _this.preview.setUrl( baseURL + '/Preview/' + s.data.id + '.html');
-
- if (s.data.is_approved) {
- _this.removeBtn.show();
- } else {
- _this.addBtn.show();
- }
-
- }
- },
- xns : Roo.bootstrap.Table,
- '|xns' : 'Roo.bootstrap.Table'
- },
- cm : [
- {
- xtype : 'ColumnModel',
- dataIndex : 'filter',
- header : _this._strings['d7778d0c64b6ba21494c97f77a66885a'] /* Filter */,
- sm : 6,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'value',
- header : _this._strings['689202409e48743b914713f96d93947c'] /* Value */,
- renderer : function(v,x,r) {
-
- return v;
- },
- sm : 6,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- }
- ]
- }
- },
{
xtype : 'Grid',
region : 'center',