]> git.proxmox.com Git - proxmox-backup.git/blame - www/SystemConfiguration.js
src/config/network.rs: make it compatible with pve
[proxmox-backup.git] / www / SystemConfiguration.js
CommitLineData
b0ee976f
DM
1/*global Proxmox*/
2
3Ext.define('PBS.SystemConfiguration', {
4 extend: 'Ext.tab.Panel',
5 xtype: 'pbsSystemConfiguration',
6
7 title: gettext('Configuration') + ': ' + gettext('System'),
63bd6a9f 8 border: true,
b0ee976f
DM
9 scrollable: true,
10 defaults: { border: false },
11 items: [
12 {
13 title: gettext('Network/Time'),
14 itemId: 'network',
15 xtype: 'panel',
16 layout: {
17 type: 'vbox',
18 align: 'stretch',
19 multi: true
20 },
21 bodyPadding: '0 0 10 0',
22 defaults: {
23 collapsible: true,
24 animCollapse: false,
25 margin: '10 10 0 10'
26 },
27 items: [
28 {
29 flex: 1,
30 minHeight: 200,
31 title: gettext('Interfaces'),
32 xtype: 'proxmoxNodeNetworkView',
7b22acd0
DM
33 showApplyBtn: true,
34 types: ['bond', 'bridge', 'vlan'],
b2b3485d 35 nodename: 'localhost'
b0ee976f
DM
36 },
37 {
38 title: gettext('DNS'),
39 xtype: 'proxmoxNodeDNSView',
b2b3485d 40 nodename: 'localhost'
b0ee976f
DM
41 },
42 {
43 title: gettext('Time'),
44 xtype: 'proxmoxNodeTimeView',
b2b3485d 45 nodename: 'localhost'
b0ee976f
DM
46 }
47 ]
48// },
49// {
50// itemId: 'options',
b2b3485d
DM
51// title: gettext('Options'),
52// html: "TESWT"
b0ee976f
DM
53// xtype: 'pbsSystemOptions'
54 }
55 ],
56
57 initComponent: function() {
58 var me = this;
59
60 me.callParent();
61
62 var networktime = me.getComponent('network');
63 Ext.Array.forEach(networktime.query(), function(item) {
64 item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']);
65 });
66 }
67});
68
69