]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/SystemConfiguration.js
BackupRestore.js - add timestamp column
[pmg-gui.git] / js / SystemConfiguration.js
index 8c6af2dd38434c018e16988cfd8806f3ceb2061c..8e51127b2ef993c229bbaf6cbd2672344b889408 100644 (file)
@@ -1,33 +1,57 @@
+/*global Proxmox*/
+
 Ext.define('PMG.SystemConfiguration', {
     extend: 'Ext.tab.Panel',
-    alias: 'widget.pmgSystemConfiguration',
-
-    title: gettext('System Configuration'),
+    xtype: 'pmgSystemConfiguration',
 
+    title: gettext('Configuration') + ': ' + gettext('System'),
+    border: false,
+    scrollable: true,
+    defaults: { border: false },
     items: [
        {
-            title: gettext('Network'),
-           html: "Network"
-       },
-       {
-            title: gettext('Time'),
-           html: "Time"
-       },
-       {
-            title: gettext('Backup'),
-           html: "Backkup"
-       },
-       {
-            title: gettext('Restore'),
-           html: "Restore"
+           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,
+                   minHeight: 200,
+                   title: gettext('Interfaces'),
+                   xtype: 'proxmoxNodeNetworkView',
+                   nodename: Proxmox.NodeName
+               },
+               {
+                   title: gettext('DNS'),
+                   xtype: 'proxmoxNodeDNSView',
+                   nodename: Proxmox.NodeName
+               },
+               {
+                   title: gettext('Time'),
+                   xtype: 'proxmoxNodeTimeView',
+                   nodename: Proxmox.NodeName
+               }
+           ]
        },
        {
-            title: gettext('Reports'),
-           html: "Reports"
+           itemId: 'options',
+            title: gettext('Options'),
+           xtype: 'pmgSystemOptions'
        },
        {
-            title: gettext('SSH Access'),
-           html: "SSH Access"
+           itemId: 'backup',
+           xtype: 'pmgBackupRestore'
        }
     ]
 });