]> git.proxmox.com Git - pmg-gui.git/blob - js/SystemConfiguration.js
ClusterAdministration.js - sort nodes by cid
[pmg-gui.git] / js / SystemConfiguration.js
1 /*global Proxmox*/
2
3 Ext.define('PMG.SystemConfiguration', {
4 extend: 'Ext.tab.Panel',
5 xtype: 'pmgSystemConfiguration',
6
7 title: gettext('Configuration') + ': ' + gettext('System'),
8 border: false,
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'],
34 nodename: Proxmox.NodeName
35 },
36 {
37 title: gettext('DNS'),
38 xtype: 'proxmoxNodeDNSView',
39 nodename: Proxmox.NodeName
40 },
41 {
42 title: gettext('Time'),
43 xtype: 'proxmoxNodeTimeView',
44 nodename: Proxmox.NodeName
45 }
46 ]
47 },
48 {
49 itemId: 'options',
50 title: gettext('Options'),
51 xtype: 'pmgSystemOptions'
52 },
53 {
54 itemId: 'backup',
55 xtype: 'pmgBackupRestore'
56 }
57 ],
58
59 initComponent: function() {
60 var me = this;
61
62 me.callParent();
63
64 var networktime = me.getComponent('network');
65 Ext.Array.forEach(networktime.query(), function(item) {
66 item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']);
67 });
68 }
69 });
70
71