[pve-devel] [PATCH 17/18] restructure configuration panel

Dominik Csapak d.csapak at proxmox.com
Tue Apr 4 13:48:57 CEST 2017


move dns/time into network panel, to save some space

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 js/SystemConfiguration.js | 51 +++++++++++++++++++++++++++++++++--------------
 1 file changed, 36 insertions(+), 15 deletions(-)

diff --git a/js/SystemConfiguration.js b/js/SystemConfiguration.js
index 80a2539..2b2b323 100644
--- a/js/SystemConfiguration.js
+++ b/js/SystemConfiguration.js
@@ -4,28 +4,49 @@ Ext.define('PMG.SystemConfiguration', {
 
     title: gettext('Configuration') + ': ' + gettext('System'),
     border: false,
+    scrollable: true,
     defaults: { border: false },
-
     items: [
 	{
-	    title: gettext('Network'),
-	    xtype: 'proxmoxNodeNetworkView',
-	    nodename: Proxmox.NodeName
-	},
-	{
-	    title: gettext('DNS'),
-	    xtype: 'proxmoxNodeDNSView',
-	    nodename: Proxmox.NodeName
-	},
-	{
-	    title: gettext('Time'),
-            xtype: 'proxmoxNodeTimeView',
-	    nodename: Proxmox.NodeName
+	    title: gettext('Network/Time'),
+	    itemId: 'network',
+	    xtype: 'panel',
+	    layout: {
+		type: 'vbox',
+		align: 'stretch',
+		multi: true,
+	    },
+	    bodyPadding: '0 0 10 0',
+	    defaults: {
+		collapsible: true,
+		animCollapse: false,
+		margin: '10 10 0 10'
+	    },
+	    items: [
+		{
+		    flex: 1,
+		    title: gettext('Interfaces'),
+		    xtype: 'proxmoxNodeNetworkView',
+		    nodename: Proxmox.NodeName,
+		},
+		{
+		    height: 200,
+		    title: gettext('DNS'),
+		    xtype: 'proxmoxNodeDNSView',
+		    nodename: Proxmox.NodeName
+		},
+		{
+		    height: 150,
+		    title: gettext('Time'),
+		    xtype: 'proxmoxNodeTimeView',
+		    nodename: Proxmox.NodeName
+		},
+	    ]
 	},
 	{
 	    itemId: 'backup',
             title: gettext('Backup'),
-	    html: "Backkup"
+	    html: "Backup"
 	},
 	{
 	    itemId: 'restore',
-- 
2.11.0





More information about the pve-devel mailing list