title: gettext('Guests'),
- height: 200,
- layout: 'column',
+ height: 250,
+ layout: {
+ type: 'table',
+ columns: 2,
+ tableAttrs: {
+ style: {
+ width: '100%',
+ },
+ },
+ },
bodyPadding: '0 20 20 20',
defaults: {
- columnWidth: 0.5,
xtype: 'box',
padding: '0 50 0 50',
style: {
- 'text-align':'center'
- }
+ 'text-align': 'center',
+ 'line-height': '1.2',
+ },
},
items: [{
itemId: 'qemu',
running: 0,
paused: 0,
stopped: 0,
- template: 0
+ template: 0,
},
tpl: [
'<h3>' + gettext("Virtual Machines") + '</h3>',
gettext('Templates'),
'</div>',
'<div class="right-aligned">{template}</div>',
- '</tpl>'
- ]
- },{
+ '</tpl>',
+ ],
+ }, {
itemId: 'lxc',
data: {
running: 0,
paused: 0,
stopped: 0,
- template: 0
+ template: 0,
},
tpl: [
'<h3>' + gettext("LXC Container") + '</h3>',
gettext('Templates'),
'</div>',
'<div class="right-aligned">{template}</div>',
- '</tpl>'
- ]
- },{
+ '</tpl>',
+ ],
+ }, {
itemId: 'error',
+ colspan: 2,
data: {
- num: 0
+ num: 0,
},
columnWidth: 1,
padding: '10 250 0 250',
gettext('Error'),
'</div>',
'<div class="right-aligned">{num}</div>',
- '</tpl>'
- ]
+ '</tpl>',
+ ],
}],
updateValues: function(qemu, lxc, error) {
var me = this;
me.getComponent('qemu').update(qemu);
me.getComponent('lxc').update(lxc);
- me.getComponent('error').update({num: error});
- }
+ me.getComponent('error').update({ num: error });
+ },
});