]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/SystemConfiguration.js
quarantine: refactor spamquarantine controller
[pmg-gui.git] / js / SystemConfiguration.js
index 2b2b323a7c5599863881d74ad5d0a5f9bb86dad1..a2d1cef72c7c5f4a7dd7aac6a20f909f9e1c5b73 100644 (file)
@@ -1,3 +1,4 @@
+
 Ext.define('PMG.SystemConfiguration', {
     extend: 'Ext.tab.Panel',
     xtype: 'pmgSystemConfiguration',
@@ -10,6 +11,7 @@ Ext.define('PMG.SystemConfiguration', {
        {
            title: gettext('Network/Time'),
            itemId: 'network',
+           iconCls: 'fa fa-exchange',
            xtype: 'panel',
            layout: {
                type: 'vbox',
@@ -20,50 +22,48 @@ Ext.define('PMG.SystemConfiguration', {
            defaults: {
                collapsible: true,
                animCollapse: false,
-               margin: '10 10 0 10'
+               margin: '10 10 0 10',
            },
            items: [
                {
-                   flex: 1,
-                   title: gettext('Interfaces'),
-                   xtype: 'proxmoxNodeNetworkView',
+                   title: gettext('Time'),
+                   xtype: 'proxmoxNodeTimeView',
                    nodename: Proxmox.NodeName,
                },
                {
-                   height: 200,
                    title: gettext('DNS'),
                    xtype: 'proxmoxNodeDNSView',
-                   nodename: Proxmox.NodeName
+                   nodename: Proxmox.NodeName,
                },
                {
-                   height: 150,
-                   title: gettext('Time'),
-                   xtype: 'proxmoxNodeTimeView',
-                   nodename: Proxmox.NodeName
+                   flex: 1,
+                   minHeight: 200,
+                   title: gettext('Interfaces'),
+                   xtype: 'proxmoxNodeNetworkView',
+                   types: ['bond'],
+                   nodename: Proxmox.NodeName,
+                   showApplyBtn: true,
                },
-           ]
-       },
-       {
-           itemId: 'backup',
-            title: gettext('Backup'),
-           html: "Backup"
-       },
-       {
-           itemId: 'restore',
-            title: gettext('Restore'),
-           html: "Restore"
+           ],
        },
        {
-           itemId: 'reports',
-            title: gettext('Reports'),
-           html: "Reports"
+           xtype: 'pmgSystemOptions',
+           itemId: 'options',
+            title: gettext('Options'),
+           iconCls: 'fa fa-cogs',
        },
-       {
-           itemId: 'ssh',
-            title: gettext('SSH Access'),
-           html: "SSH Access"
-       }
-    ]
+    ],
+
+    initComponent: function() {
+       var me = this;
+
+       me.callParent();
+
+       var networktime = me.getComponent('network');
+       Ext.Array.forEach(networktime.query(), function(item) {
+           item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
+       });
+    },
 });