]> git.proxmox.com Git - pmg-gui.git/blame - js/SystemConfiguration.js
DomainStatistics: s/mbytes/bytes/
[pmg-gui.git] / js / SystemConfiguration.js
CommitLineData
ff735274 1/*global Proxmox*/
ec922854 2
e119071c
DM
3Ext.define('PMG.SystemConfiguration', {
4 extend: 'Ext.tab.Panel',
bca16cae 5 xtype: 'pmgSystemConfiguration',
e119071c 6
d9e1af94 7 title: gettext('Configuration') + ': ' + gettext('System'),
830e5827 8 border: false,
1a51a8dc 9 scrollable: true,
830e5827 10 defaults: { border: false },
e119071c
DM
11 items: [
12 {
1a51a8dc
DC
13 title: gettext('Network/Time'),
14 itemId: 'network',
15 xtype: 'panel',
16 layout: {
17 type: 'vbox',
18 align: 'stretch',
771bd0b9 19 multi: true
1a51a8dc
DC
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,
3960dd97 30 minHeight: 200,
1a51a8dc
DC
31 title: gettext('Interfaces'),
32 xtype: 'proxmoxNodeNetworkView',
75a68159 33 types: ['bond'],
771bd0b9 34 nodename: Proxmox.NodeName
1a51a8dc
DC
35 },
36 {
1a51a8dc
DC
37 title: gettext('DNS'),
38 xtype: 'proxmoxNodeDNSView',
39 nodename: Proxmox.NodeName
40 },
41 {
1a51a8dc
DC
42 title: gettext('Time'),
43 xtype: 'proxmoxNodeTimeView',
44 nodename: Proxmox.NodeName
771bd0b9 45 }
1a51a8dc 46 ]
e119071c 47 },
e119071c 48 {
fc7de588
DM
49 itemId: 'options',
50 title: gettext('Options'),
771bd0b9 51 xtype: 'pmgSystemOptions'
7f261b55
DM
52 },
53 {
54 itemId: 'backup',
55 xtype: 'pmgBackupRestore'
e119071c 56 }
adc5c385
DC
57 ],
58
59 initComponent: function() {
60 var me = this;
61
62 me.callParent();
63
64 var networktime = me.getComponent('network');
65 Ext.Array.forEach(networktime.query(), function(item) {
66 item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']);
67 });
68 }
e119071c
DM
69});
70
71