]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/sdn/zones/QinQEdit.js
ui: sdn: homogenize the casing of labels
[pve-manager.git] / www / manager6 / sdn / zones / QinQEdit.js
1 Ext.define('PVE.sdn.zones.QinQInputPanel', {
2 extend: 'PVE.panel.SDNZoneBase',
3
4 onlineHelp: 'pvesdn_zone_plugin_qinq',
5
6 onGetValues: function(values) {
7 let me = this;
8
9 if (me.isCreate) {
10 values.type = me.type;
11 } else {
12 delete values.sdn;
13 }
14
15 return values;
16 },
17
18 initComponent: function() {
19 let me = this;
20
21 me.items = [
22 {
23 xtype: 'textfield',
24 name: 'bridge',
25 fieldLabel: 'Bridge',
26 allowBlank: false,
27 },
28 {
29 xtype: 'proxmoxintegerfield',
30 name: 'tag',
31 minValue: 0,
32 maxValue: 4096,
33 fieldLabel: gettext('Service VLAN'),
34 allowBlank: false,
35 },
36 {
37 xtype: 'proxmoxKVComboBox',
38 name: 'vlan-protocol',
39 fieldLabel: gettext('Service VLAN Protocol'),
40 allowBlank: true,
41 value: '802.1q',
42 comboItems: [
43 ['802.1q', '802.1q'],
44 ['802.1ad', '802.1ad'],
45 ],
46 },
47 ];
48
49 me.callParent();
50 },
51 });