]>
Commit | Line | Data |
---|---|---|
ff735274 | 1 | /*global Proxmox*/ |
ec922854 | 2 | |
e119071c DM |
3 | Ext.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', | |
771bd0b9 | 33 | nodename: Proxmox.NodeName |
1a51a8dc DC |
34 | }, |
35 | { | |
1a51a8dc DC |
36 | title: gettext('DNS'), |
37 | xtype: 'proxmoxNodeDNSView', | |
38 | nodename: Proxmox.NodeName | |
39 | }, | |
40 | { | |
1a51a8dc DC |
41 | title: gettext('Time'), |
42 | xtype: 'proxmoxNodeTimeView', | |
43 | nodename: Proxmox.NodeName | |
771bd0b9 | 44 | } |
1a51a8dc | 45 | ] |
e119071c | 46 | }, |
e119071c | 47 | { |
fc7de588 DM |
48 | itemId: 'options', |
49 | title: gettext('Options'), | |
771bd0b9 | 50 | xtype: 'pmgSystemOptions' |
7f261b55 DM |
51 | }, |
52 | { | |
53 | itemId: 'backup', | |
54 | xtype: 'pmgBackupRestore' | |
e119071c | 55 | } |
adc5c385 DC |
56 | ], |
57 | ||
58 | initComponent: function() { | |
59 | var me = this; | |
60 | ||
61 | me.callParent(); | |
62 | ||
63 | var networktime = me.getComponent('network'); | |
64 | Ext.Array.forEach(networktime.query(), function(item) { | |
65 | item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']); | |
66 | }); | |
67 | } | |
e119071c DM |
68 | }); |
69 | ||
70 |