]> git.proxmox.com Git - pmg-gui.git/blob - js/SystemConfiguration.js
add Settings window
[pmg-gui.git] / js / SystemConfiguration.js
1
2 Ext.define('PMG.SystemConfiguration', {
3 extend: 'Ext.tab.Panel',
4 xtype: 'pmgSystemConfiguration',
5
6 title: gettext('Configuration') + ': ' + gettext('System'),
7 border: false,
8 scrollable: true,
9 defaults: { border: false },
10 items: [
11 {
12 title: gettext('Network/Time'),
13 itemId: 'network',
14 xtype: 'panel',
15 layout: {
16 type: 'vbox',
17 align: 'stretch',
18 multi: true,
19 },
20 bodyPadding: '0 0 10 0',
21 defaults: {
22 collapsible: true,
23 animCollapse: false,
24 margin: '10 10 0 10',
25 },
26 items: [
27 {
28 flex: 1,
29 minHeight: 200,
30 title: gettext('Interfaces'),
31 xtype: 'proxmoxNodeNetworkView',
32 types: ['bond'],
33 nodename: Proxmox.NodeName,
34 },
35 {
36 title: gettext('DNS'),
37 xtype: 'proxmoxNodeDNSView',
38 nodename: Proxmox.NodeName,
39 },
40 {
41 title: gettext('Time'),
42 xtype: 'proxmoxNodeTimeView',
43 nodename: Proxmox.NodeName,
44 },
45 ],
46 },
47 {
48 itemId: 'options',
49 title: gettext('Options'),
50 xtype: 'pmgSystemOptions',
51 },
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) {
61 item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
62 });
63 },
64 });
65
66