]>
git.proxmox.com Git - pmg-gui.git/blob - js/SystemConfiguration.js
741d54b9db75b021852ebc6df6dd1c610bdae53d
2 Ext
.define('PMG.RestoreSystemConfiguration', {
4 xtype
: 'pmgRestoreSystemConfiguration',
6 title
: gettext('Restore'),
9 xclass
: 'Ext.app.ViewController',
11 onFactoryDefaults: function() {
12 var me
= this.getView();
16 gettext('Reset rule database to factory defaults?'),
18 if (button
!== 'yes') return;
19 var url
= '/config/ruledb';
20 Proxmox
.Utils
.API2Request({
21 url
: '/config/ruledb',
24 failure: function (response
, opts
) {
25 Ext
.Msg
.alert(gettext('Error'), response
.htmlStatus
);
35 text
: gettext('Factory Defaults'),
36 handler
: 'onFactoryDefaults'
41 Ext
.define('PMG.SystemConfiguration', {
42 extend
: 'Ext.tab.Panel',
43 xtype
: 'pmgSystemConfiguration',
45 title
: gettext('Configuration') + ': ' + gettext('System'),
48 defaults
: { border
: false },
51 title
: gettext('Network/Time'),
59 bodyPadding
: '0 0 10 0',
69 title
: gettext('Interfaces'),
70 xtype
: 'proxmoxNodeNetworkView',
71 nodename
: Proxmox
.NodeName
74 title
: gettext('DNS'),
75 xtype
: 'proxmoxNodeDNSView',
76 nodename
: Proxmox
.NodeName
79 title
: gettext('Time'),
80 xtype
: 'proxmoxNodeTimeView',
81 nodename
: Proxmox
.NodeName
87 title
: gettext('Backup'),
92 xtype
: 'pmgRestoreSystemConfiguration'
96 title
: gettext('Options'),
97 xtype
: 'pmgSystemOptions'