]> git.proxmox.com Git - proxmox-backup.git/blob - www/SystemConfiguration.js
ui: disk create: sync and improve 'add-datastore' checkbox label
[proxmox-backup.git] / www / SystemConfiguration.js
1 /*global Proxmox*/
2
3 Ext.define('PBS.SystemConfiguration', {
4 extend: 'Ext.tab.Panel',
5 xtype: 'pbsSystemConfiguration',
6
7 title: gettext('Configuration') + ': ' + gettext('System'),
8 border: true,
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 defaults: {
22 collapsible: true,
23 animCollapse: false,
24 margin: '10 10 0 10'
25 },
26 items: [
27 {
28 title: gettext('Time'),
29 xtype: 'proxmoxNodeTimeView',
30 nodename: 'localhost'
31 },
32 {
33 title: gettext('DNS'),
34 xtype: 'proxmoxNodeDNSView',
35 nodename: 'localhost'
36 },
37 {
38 flex: 1,
39 minHeight: 200,
40 title: gettext('Network Interfaces'),
41 xtype: 'proxmoxNodeNetworkView',
42 showApplyBtn: true,
43 types: ['bond', 'bridge', 'vlan'],
44 nodename: 'localhost'
45 },
46 ]
47 // },
48 // {
49 // itemId: 'options',
50 // title: gettext('Options'),
51 // html: "TESWT"
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