]> git.proxmox.com Git - proxmox-backup.git/blob - www/SystemConfiguration.js
gui: add navigation tree
[proxmox-backup.git] / www / SystemConfiguration.js
1 /*global Proxmox*/
2
3 Ext.define('PBS.SystemConfiguration', {
4 extend: 'Ext.tab.Panel',
5 xtype: 'pbsSystemConfiguration',
6
7 title: gettext('Configuration') + ': ' + gettext('System'),
8 border: false,
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',
33 types: ['bond'],
34 nodename: Proxmox.NodeName
35 },
36 {
37 title: gettext('DNS'),
38 xtype: 'proxmoxNodeDNSView',
39 nodename: Proxmox.NodeName
40 },
41 {
42 title: gettext('Time'),
43 xtype: 'proxmoxNodeTimeView',
44 nodename: Proxmox.NodeName
45 }
46 ]
47 // },
48 // {
49 // itemId: 'options',
50 // title: gettext('Options'),
51 // xtype: 'pbsSystemOptions'
52 }
53 ],
54
55 initComponent: function() {
56 var me = this;
57
58 me.callParent();
59
60 var networktime = me.getComponent('network');
61 Ext.Array.forEach(networktime.query(), function(item) {
62 item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']);
63 });
64 }
65 });
66
67