]>
Commit | Line | Data |
---|---|---|
b0ee976f DM |
1 | /*global Proxmox*/ |
2 | ||
3 | Ext.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', | |
33 | types: ['bond'], | |
b2b3485d | 34 | nodename: 'localhost' |
b0ee976f DM |
35 | }, |
36 | { | |
37 | title: gettext('DNS'), | |
38 | xtype: 'proxmoxNodeDNSView', | |
b2b3485d | 39 | nodename: 'localhost' |
b0ee976f DM |
40 | }, |
41 | { | |
42 | title: gettext('Time'), | |
43 | xtype: 'proxmoxNodeTimeView', | |
b2b3485d | 44 | nodename: 'localhost' |
b0ee976f DM |
45 | } |
46 | ] | |
47 | // }, | |
48 | // { | |
49 | // itemId: 'options', | |
b2b3485d DM |
50 | // title: gettext('Options'), |
51 | // html: "TESWT" | |
b0ee976f DM |
52 | // xtype: 'pbsSystemOptions' |
53 | } | |
54 | ], | |
55 | ||
56 | initComponent: function() { | |
57 | var me = this; | |
58 | ||
59 | me.callParent(); | |
60 | ||
61 | var networktime = me.getComponent('network'); | |
62 | Ext.Array.forEach(networktime.query(), function(item) { | |
63 | item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']); | |
64 | }); | |
65 | } | |
66 | }); | |
67 | ||
68 |