items : [
{
xtype : 'Column',
- md : 1,
+ md : 12,
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [
xtype : 'FieldLabel',
cls : 'roo-toolbar-label',
html : _this._strings['31c03fdb82204f0ac1fe916b2c713c8c'] /* Show <i class="fa fa-search" aria-hidden="true"></i> */,
- style : 'line-height: 34px;',
+ style : 'float: left; line-height: 34px; width: 80px;',
+ listeners : {
+ render : function (_self)
+ {
+ this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();
+ }
+ },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap'
- }
- ]
- },
- {
- xtype : 'Column',
- md : 2,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
+ },
{
xtype : 'ComboBox',
allowBlank : true,
multiple : false,
placeholder : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
removable : true,
+ style : 'float: left; width: 300px;',
triggerAction : 'all',
typeAhead : true,
valueField : 'id',
'|xns' : 'Roo.data'
}
}
- }
- ]
- },
- {
- xtype : 'Column',
- md : 2,
- listeners : {
- render : function (_self)
- {
- this.show();
-
- if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {
- this.hide();
- }
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
+ },
{
xtype : 'ComboBox',
allowBlank : true,
displayField : 'action',
editable : false,
forceSelection : true,
- listWidth : 300,
multiple : false,
placeholder : _this._strings['10927a67903afd162cc29267d434a2bb'] /* select action */,
removable : true,
+ style : 'float: left; width: 300px; margin-left: 15px;',
triggerAction : 'all',
typeAhead : true,
valueField : 'id',
{
_this.actionSel = this;
+ this.show();
+
+ if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {
+ this.hide();
+ }
+
},
select : function (combo, record, index)
{
'|xns' : 'Roo.data'
}
}
- }
- ]
- },
- {
- xtype : 'Column',
- md : 2,
- listeners : {
- render : function (_self)
- {
- this.show();
-
- if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {
- this.hide();
- }
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
+ },
{
xtype : 'ComboBox',
allowBlank : true,
displayField : 'on_table',
editable : false,
forceSelection : true,
- listWidth : 300,
multiple : false,
placeholder : _this._strings['c759559b750d502a5be8dceae85ed841'] /* select affected */,
removable : true,
+ style : 'float: left; width: 300px; margin-left: 15px;',
triggerAction : 'all',
typeAhead : true,
valueField : 'id',
render : function (_self)
{
_this.affectSel = this;
+
+ this.show();
+
+ if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {
+ this.hide();
+ }
+
},
select : function (combo, record, index)
{
'|xns' : 'Roo.data'
}
}
- }
- ]
- },
- {
- xtype : 'Column',
- md : 1,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
+ },
{
xtype : 'FieldLabel',
cls : 'roo-toolbar-label',
html : _this._strings['90275c90e270853fee34db3b87d24d7c'] /* Date Range <i class="fa fa-calendar" aria-hidden="true"></i> */,
- style : 'line-height: 34px;',
+ style : 'float: left; line-height: 34px; width: 125px; margin-left: 15px;',
+ listeners : {
+ render : function (_self)
+ {
+ this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();
+ }
+ },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap'
- }
- ]
- },
- {
- xtype : 'Column',
- md : 1,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
+ },
{
xtype : 'DateField',
placeholder : _this._strings['a6122a65eaa676f700ae68d393054a37'] /* Start */,
+ style : 'float:left; width: 150px;',
listeners : {
change : function (_self, newValue, oldValue)
{
},
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap'
- }
- ]
- },
- {
- xtype : 'Column',
- md : 1,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
+ },
{
xtype : 'DateField',
placeholder : _this._strings['87557f11575c0ad78e4e28abedc13b6e'] /* End */,
+ style : 'float:left; width: 150px; margin-left: 15px;',
listeners : {
change : function (_self, newValue, oldValue)
{
]
}
]
- },
- {
- xtype : 'Row',
- cls : 'roo-toolbar',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'Column',
- md : 12,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'FieldLabel',
- cls : 'roo-toolbar-label',
- html : _this._strings['31c03fdb82204f0ac1fe916b2c713c8c'] /* Show <i class="fa fa-search" aria-hidden="true"></i> */,
- style : 'line-height: 34px; width: 80px;',
- listeners : {
- render : function (_self)
- {
- this.indicator.setVisibilityMode(Roo.Element.DISPLAY).hide();
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- }
- ]
- }
- ]
}
]
}
cls : 'table-fixed',
hover : true,
loadMask : true,
- responsive : true,
rowSelection : true,
striped : false,
listeners : {
render : function (_self)
{
-
_this.table = _self;
+ if(appDisabled.indexOf('Core.SuperAdmin') * 1 != -1) {
+ this.colModel.setHidden(this.colModel.findColumnIndex('id'), true);
+ this.colModel.setHidden(this.colModel.findColumnIndex('on_table'), true);
+ this.colModel.setHidden(this.colModel.findColumnIndex('ipaddr'), true);
+ this.colModel.getColumnByDataIndex('remarks').md = 7;
+ this.colModel.getColumnByDataIndex('remarks').sm = 7;
+ this.colModel.getColumnByDataIndex('remarks').xs = 7;
+ }
+
},
rowdblclick : function (_self, el, rowIndex, e)
{
dataIndex : 'action',
header : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
md : 1,
- renderer : function(v) { return String.format('{0}', v); },
+ renderer : function(v)
+ {
+ var vv = v.charAt(0).toUpperCase() + v.slice(1).toLowerCase();
+
+ return String.format('{0}', vv);
+ },
sm : 1,
xs : 1,
xns : Roo.grid,