]>
git.proxmox.com Git - pmg-gui.git/blob - js/SystemConfiguration.js
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') {
21 var url
= '/config/ruledb';
22 Proxmox
.Utils
.API2Request({
23 url
: '/config/ruledb',
26 failure: function (response
, opts
) {
27 Ext
.Msg
.alert(gettext('Error'), response
.htmlStatus
);
37 text
: gettext('Factory Defaults'),
38 handler
: 'onFactoryDefaults'
43 Ext
.define('PMG.SystemConfiguration', {
44 extend
: 'Ext.tab.Panel',
45 xtype
: 'pmgSystemConfiguration',
47 title
: gettext('Configuration') + ': ' + gettext('System'),
50 defaults
: { border
: false },
53 title
: gettext('Network/Time'),
61 bodyPadding
: '0 0 10 0',
71 title
: gettext('Interfaces'),
72 xtype
: 'proxmoxNodeNetworkView',
73 nodename
: Proxmox
.NodeName
76 title
: gettext('DNS'),
77 xtype
: 'proxmoxNodeDNSView',
78 nodename
: Proxmox
.NodeName
81 title
: gettext('Time'),
82 xtype
: 'proxmoxNodeTimeView',
83 nodename
: Proxmox
.NodeName
89 title
: gettext('Backup'),
94 xtype
: 'pmgRestoreSystemConfiguration'
98 title
: gettext('Options'),
99 xtype
: 'pmgSystemOptions'