]>
Commit | Line | Data |
---|---|---|
ec922854 | 1 | |
e119071c DM |
2 | Ext.define('PMG.SystemConfiguration', { |
3 | extend: 'Ext.tab.Panel', | |
bca16cae | 4 | xtype: 'pmgSystemConfiguration', |
e119071c | 5 | |
d9e1af94 | 6 | title: gettext('Configuration') + ': ' + gettext('System'), |
830e5827 | 7 | border: false, |
1a51a8dc | 8 | scrollable: true, |
830e5827 | 9 | defaults: { border: false }, |
e119071c DM |
10 | items: [ |
11 | { | |
1a51a8dc DC |
12 | title: gettext('Network/Time'), |
13 | itemId: 'network', | |
b9cc0695 | 14 | iconCls: 'fa fa-exchange', |
1a51a8dc DC |
15 | xtype: 'panel', |
16 | layout: { | |
17 | type: 'vbox', | |
18 | align: 'stretch', | |
c87d46fb | 19 | multi: true, |
1a51a8dc DC |
20 | }, |
21 | bodyPadding: '0 0 10 0', | |
22 | defaults: { | |
23 | collapsible: true, | |
24 | animCollapse: false, | |
c87d46fb | 25 | margin: '10 10 0 10', |
1a51a8dc DC |
26 | }, |
27 | items: [ | |
28 | { | |
e47571db TL |
29 | title: gettext('Time'), |
30 | xtype: 'proxmoxNodeTimeView', | |
c87d46fb | 31 | nodename: Proxmox.NodeName, |
1a51a8dc DC |
32 | }, |
33 | { | |
1a51a8dc DC |
34 | title: gettext('DNS'), |
35 | xtype: 'proxmoxNodeDNSView', | |
c87d46fb | 36 | nodename: Proxmox.NodeName, |
1a51a8dc DC |
37 | }, |
38 | { | |
e47571db TL |
39 | flex: 1, |
40 | minHeight: 200, | |
41 | title: gettext('Interfaces'), | |
42 | xtype: 'proxmoxNodeNetworkView', | |
43 | types: ['bond'], | |
c87d46fb | 44 | nodename: Proxmox.NodeName, |
7949d199 | 45 | showApplyBtn: true, |
c87d46fb TL |
46 | }, |
47 | ], | |
e119071c | 48 | }, |
e119071c | 49 | { |
b9cc0695 | 50 | xtype: 'pmgSystemOptions', |
fc7de588 DM |
51 | itemId: 'options', |
52 | title: gettext('Options'), | |
b9cc0695 | 53 | iconCls: 'fa fa-cogs', |
7f261b55 | 54 | }, |
adc5c385 DC |
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) { | |
c87d46fb | 64 | item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']); |
adc5c385 | 65 | }); |
c87d46fb | 66 | }, |
e119071c DM |
67 | }); |
68 | ||
69 |