]>
git.proxmox.com Git - pmg-gui.git/blob - js/SystemConfiguration.js
1 Ext
.define('PMG.RestoreSystemConfiguration', {
3 xtype
: 'pmgRestoreSystemConfiguration',
5 title
: gettext('Restore'),
8 xclass
: 'Ext.app.ViewController',
10 onFactoryDefaults: function() {
11 var me
= this.getView();
15 gettext('Reset rule database to factory defaults?'),
17 if (button
!== 'yes') return;
18 var url
= '/config/ruledb';
19 Proxmox
.Utils
.API2Request({
20 url
: '/config/ruledb',
23 failure: function (response
, opts
) {
24 Ext
.Msg
.alert(gettext('Error'), response
.htmlStatus
);
34 text
: gettext('Factory Defaults'),
35 handler
: 'onFactoryDefaults'
40 Ext
.define('PMG.SystemConfiguration', {
41 extend
: 'Ext.tab.Panel',
42 xtype
: 'pmgSystemConfiguration',
44 title
: gettext('Configuration') + ': ' + gettext('System'),
47 defaults
: { border
: false },
50 title
: gettext('Network/Time'),
58 bodyPadding
: '0 0 10 0',
68 title
: gettext('Interfaces'),
69 xtype
: 'proxmoxNodeNetworkView',
70 nodename
: Proxmox
.NodeName
,
73 title
: gettext('DNS'),
74 xtype
: 'proxmoxNodeDNSView',
75 nodename
: Proxmox
.NodeName
78 title
: gettext('Time'),
79 xtype
: 'proxmoxNodeTimeView',
80 nodename
: Proxmox
.NodeName
86 title
: gettext('Backup'),
91 xtype
: 'pmgRestoreSystemConfiguration'
95 title
: gettext('Options'),
96 xtype
: 'pmgSystemOptions',