]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/panel/TemplateStatusView.js
add xtype to noteview so we can use it declaratively
[pve-manager.git] / www / manager6 / panel / TemplateStatusView.js
index 522699606c1ac1344990f0ceaca93f1183f07e6a..6f456099f200d7176903b0626f57ded632094ac5 100644 (file)
@@ -2,51 +2,68 @@ Ext.define('PVE.panel.TemplateStatusView',{
     extend: 'PVE.panel.StatusView',
     alias: 'widget.pveTemplateStatusView',
 
+    layout: {
+       type: 'vbox',
+       align: 'stretch'
+    },
+
     defaults: {
        xtype: 'pveInfoWidget',
        printBar: false,
-       padding: '5 0 0 20',
-       width: 400
+       padding: '2 25'
     },
     items: [
        {
            xtype: 'box',
-           padding: '20 0 0 0'
+           height: 20
+       },
+       {
+           itemId: 'hamanaged',
+           iconCls: 'fa fa-heartbeat fa-fw',
+           title: gettext('HA State'),
+           printBar: false,
+           textField: 'ha',
+           renderer: PVE.Utils.format_ha
        },
        {
            itemId: 'node',
+           iconCls: 'fa fa-fw fa-building',
            title: gettext('Node')
        },
        {
            xtype: 'box',
-           padding: '20 0 0 0'
+           height: 20
        },
        {
            itemId: 'cpus',
+           iconCls: 'fa fa-fw pve-itype-icon-processor pve-icon',
            title: gettext('Processors'),
            textField: 'cpus'
        },
        {
            itemId: 'memory',
+           iconCls: 'fa fa-fw pve-itype-icon-memory pve-icon',
            title: gettext('Memory'),
            textField: 'maxmem',
            renderer: PVE.Utils.render_size
        },
        {
            itemId: 'swap',
+           iconCls: 'fa fa-refresh fa-fw',
            title: gettext('Swap'),
            textField: 'maxswap',
            renderer: PVE.Utils.render_size
        },
        {
            itemId: 'disk',
+           iconCls: 'fa fa-hdd-o fa-fw',
            title: gettext('Bootdisk size'),
            textField: 'maxdisk',
            renderer: PVE.Utils.render_size
        },
        {
            xtype: 'box',
-           padding: '25 0 0 0'
+           height: 20
        }
     ],