]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/dc/Config.js
use auto-generated block IDs to reference online docu.
[pve-manager.git] / www / manager6 / dc / Config.js
1 /*
2 * Datacenter config panel, located in the center of the ViewPort after the Datacenter view is selected
3 */
4
5 Ext.define('PVE.dc.Config', {
6 extend: 'PVE.panel.Config',
7 alias: 'widget.PVE.dc.Config',
8
9 onlineHelp: 'pve_admin_guide',
10
11 initComponent: function() {
12 var me = this;
13
14 var caps = Ext.state.Manager.get('GuiCap');
15
16 me.items = [];
17
18 Ext.apply(me, {
19 title: gettext("Datacenter"),
20 hstateid: 'dctab'
21 });
22
23 if (caps.dc['Sys.Audit']) {
24 me.items.push({
25 title: gettext('Summary'),
26 xtype: 'pveDcSummary',
27 iconCls: 'fa fa-book',
28 itemId: 'summary'
29 });
30
31 me.items.push({
32 xtype: 'pveDcOptionView',
33 title: gettext('Options'),
34 onlineHelp: 'datacenter_configuration_file',
35 iconCls: 'fa fa-gear',
36 itemId: 'options'
37 });
38 }
39
40 if (caps.storage['Datastore.Allocate'] || caps.dc['Sys.Audit']) {
41 me.items.push({
42 xtype: 'pveStorageView',
43 title: gettext('Storage'),
44 onlineHelp: 'chapter_storage',
45 iconCls: 'fa fa-database',
46 itemId: 'storage'
47 });
48 }
49
50 if (caps.dc['Sys.Audit']) {
51 me.items.push({
52 xtype: 'pveDcBackupView',
53 iconCls: 'fa fa-floppy-o',
54 onlineHelp: 'chapter_vzdump',
55 title: gettext('Backup'),
56 itemId: 'backup'
57 },
58 {
59 xtype: 'pveACLView',
60 title: gettext('Permissions'),
61 iconCls: 'fa fa-unlock',
62 onlineHelp: 'chapter_user_management',
63 itemId: 'permissions',
64 expandedOnInit: true
65 });
66 }
67
68 me.items.push({
69 xtype: 'pveUserView',
70 groups: ['permissions'],
71 iconCls: 'fa fa-user',
72 onlineHelp: 'pveum_users',
73 title: gettext('Users'),
74 itemId: 'users'
75 });
76
77 if (caps.dc['Sys.Audit']) {
78 me.items.push({
79 xtype: 'pveGroupView',
80 title: gettext('Groups'),
81 iconCls: 'fa fa-users',
82 onlineHelp: 'pveum_groups',
83 groups: ['permissions'],
84 itemId: 'groups'
85 },
86 {
87 xtype: 'pvePoolView',
88 title: gettext('Pools'),
89 iconCls: 'fa fa-tags',
90 onlineHelp: 'pveum_pools',
91 groups: ['permissions'],
92 itemId: 'pools'
93 },
94 {
95 xtype: 'pveRoleView',
96 title: gettext('Roles'),
97 iconCls: 'fa fa-male',
98 onlineHelp: 'pveum_roles',
99 groups: ['permissions'],
100 itemId: 'roles'
101 },
102 {
103 xtype: 'pveAuthView',
104 title: gettext('Authentication'),
105 groups: ['permissions'],
106 onlineHelp: 'pveum_authentication_realms',
107 iconCls: 'fa fa-key',
108 itemId: 'domains'
109 },
110 {
111 xtype: 'pveHAStatusView',
112 title: 'HA',
113 iconCls: 'fa fa-heartbeat',
114 onlineHelp: 'chapter_ha_manager',
115 itemId: 'ha'
116 },
117 {
118 title: gettext('Resources'),
119 groups: ['ha'],
120 iconCls: 'fa fa-th',
121 onlineHelp: 'ha_manager_resources',
122 xtype: 'pveHAResourcesView',
123 itemId: 'resources'
124 },
125 {
126 title: gettext('Groups'),
127 groups: ['ha'],
128 xtype: 'pveHAGroupsView',
129 onlineHelp: 'ha_manager_groups',
130 iconCls: 'fa fa-object-group',
131 itemId: 'ha-groups'
132 },
133 {
134 title: gettext('Fencing'),
135 groups: ['ha'],
136 iconCls: 'fa fa-bolt',
137 onlineHelp: 'ha_manager_fencing',
138 xtype: 'pveFencingView',
139 itemId: 'ha-fencing'
140 },
141 {
142 xtype: 'pveFirewallRules',
143 title: gettext('Firewall'),
144 allow_iface: true,
145 base_url: '/cluster/firewall/rules',
146 list_refs_url: '/cluster/firewall/refs',
147 iconCls: 'fa fa-shield',
148 onlineHelp: 'chapter_pve_firewall',
149 itemId: 'firewall'
150 },
151 {
152 xtype: 'pveFirewallOptions',
153 title: gettext('Options'),
154 groups: ['firewall'],
155 iconCls: 'fa fa-gear',
156 base_url: '/cluster/firewall/options',
157 onlineHelp: 'pve_firewall_cluster_wide_setup',
158 fwtype: 'dc',
159 itemId: 'firewall-options'
160 },
161 {
162 xtype: 'pveSecurityGroups',
163 title: gettext('Security Group'),
164 groups: ['firewall'],
165 iconCls: 'fa fa-group',
166 onlineHelp: 'pve_firewall_security_groups',
167 itemId: 'firewall-sg'
168 },
169 {
170 xtype: 'pveFirewallAliases',
171 title: gettext('Alias'),
172 groups: ['firewall'],
173 iconCls: 'fa fa-external-link',
174 onlineHelp: 'pve_firewall_ip_aliases',
175 base_url: '/cluster/firewall/aliases',
176 itemId: 'firewall-aliases'
177 },
178 {
179 xtype: 'pveIPSet',
180 title: 'IPSet',
181 groups: ['firewall'],
182 iconCls: 'fa fa-list-ol',
183 onlineHelp: 'pve_firewall_ip_sets',
184 base_url: '/cluster/firewall/ipset',
185 list_refs_url: '/cluster/firewall/refs',
186 itemId: 'firewall-ipset'
187 },
188 {
189 xtype: 'pveDcSupport',
190 title: gettext('Support'),
191 itemId: 'support',
192 onlineHelp: 'getting_help',
193 iconCls: 'fa fa-comments-o'
194 });
195 }
196
197 me.callParent();
198 }
199 });