]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/SystemConfiguration.js
BackupRestore.js - add timestamp column
[pmg-gui.git] / js / SystemConfiguration.js
index 4e6dd83e47435d024b28b31804539fbd8bc45184..8e51127b2ef993c229bbaf6cbd2672344b889408 100644 (file)
@@ -1,41 +1,4 @@
-Ext.define('PMG.RestoreSystemConfiguration', {
-    extend: 'Ext.Panel',
-    xtype: 'pmgRestoreSystemConfiguration',
-
-    title: gettext('Restore'),
-
-    controller: {
-       xclass: 'Ext.app.ViewController',
-
-       onFactoryDefaults: function() {
-           var me = this.getView();
-
-           Ext.Msg.confirm(
-               gettext('Confirm'),
-               gettext('Reset rule database to factory defaults?'),
-               function(button) {
-                   if (button !== 'yes') return;
-                   var url = '/config/ruledb';
-                   Proxmox.Utils.API2Request({
-                       url: '/config/ruledb',
-                       method: 'POST',
-                       waitMsgTarget: me,
-                       failure: function (response, opts) {
-                           Ext.Msg.alert(gettext('Error'), response.htmlStatus);
-                       }
-                   });
-               }
-           );
-       }
-    },
-
-    tbar: [
-       {
-           text: gettext('Factory Defaults'),
-           handler: 'onFactoryDefaults'
-       }
-    ]
-});
+/*global Proxmox*/
 
 Ext.define('PMG.SystemConfiguration', {
     extend: 'Ext.tab.Panel',
@@ -53,7 +16,7 @@ Ext.define('PMG.SystemConfiguration', {
            layout: {
                type: 'vbox',
                align: 'stretch',
-               multi: true,
+               multi: true
            },
            bodyPadding: '0 0 10 0',
            defaults: {
@@ -67,7 +30,7 @@ Ext.define('PMG.SystemConfiguration', {
                    minHeight: 200,
                    title: gettext('Interfaces'),
                    xtype: 'proxmoxNodeNetworkView',
-                   nodename: Proxmox.NodeName,
+                   nodename: Proxmox.NodeName
                },
                {
                    title: gettext('DNS'),
@@ -78,27 +41,17 @@ Ext.define('PMG.SystemConfiguration', {
                    title: gettext('Time'),
                    xtype: 'proxmoxNodeTimeView',
                    nodename: Proxmox.NodeName
-               },
+               }
            ]
        },
        {
-           itemId: 'backup',
-            title: gettext('Backup'),
-           html: "Backup"
-       },
-       {
-           itemId: 'restore',
-           xtype: 'pmgRestoreSystemConfiguration'
+           itemId: 'options',
+            title: gettext('Options'),
+           xtype: 'pmgSystemOptions'
        },
        {
-           itemId: 'reports',
-            title: gettext('Reports'),
-           html: "Reports"
-       },
-       {
-           itemId: 'ssh',
-            title: gettext('SSH Access'),
-           html: "SSH Access"
+           itemId: 'backup',
+           xtype: 'pmgBackupRestore'
        }
     ]
 });