]> git.proxmox.com Git - pmg-gui.git/blame - js/SystemConfiguration.js
pbs: add schedules grid, always select first remote
[pmg-gui.git] / js / SystemConfiguration.js
CommitLineData
ec922854 1
e119071c
DM
2Ext.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',
14 xtype: 'panel',
15 layout: {
16 type: 'vbox',
17 align: 'stretch',
c87d46fb 18 multi: true,
1a51a8dc
DC
19 },
20 bodyPadding: '0 0 10 0',
21 defaults: {
22 collapsible: true,
23 animCollapse: false,
c87d46fb 24 margin: '10 10 0 10',
1a51a8dc
DC
25 },
26 items: [
27 {
28 flex: 1,
3960dd97 29 minHeight: 200,
1a51a8dc
DC
30 title: gettext('Interfaces'),
31 xtype: 'proxmoxNodeNetworkView',
75a68159 32 types: ['bond'],
c87d46fb 33 nodename: Proxmox.NodeName,
1a51a8dc
DC
34 },
35 {
1a51a8dc
DC
36 title: gettext('DNS'),
37 xtype: 'proxmoxNodeDNSView',
c87d46fb 38 nodename: Proxmox.NodeName,
1a51a8dc
DC
39 },
40 {
1a51a8dc
DC
41 title: gettext('Time'),
42 xtype: 'proxmoxNodeTimeView',
c87d46fb
TL
43 nodename: Proxmox.NodeName,
44 },
45 ],
e119071c 46 },
e119071c 47 {
fc7de588
DM
48 itemId: 'options',
49 title: gettext('Options'),
c87d46fb 50 xtype: 'pmgSystemOptions',
7f261b55 51 },
adc5c385
DC
52 ],
53
54 initComponent: function() {
55 var me = this;
56
57 me.callParent();
58
59 var networktime = me.getComponent('network');
60 Ext.Array.forEach(networktime.query(), function(item) {
c87d46fb 61 item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
adc5c385 62 });
c87d46fb 63 },
e119071c
DM
64});
65
66