[pmg-devel] [PATCH pmg-gui v2 1/2] disclaimer edit: add position comobobox
Dominik Csapak
d.csapak at proxmox.com
Mon Jan 15 12:12:40 CET 2024
to enable setting the disclaimer position
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
* change from checkbox to combobox, adapting to the backend changes
improving clarity
js/Utils.js | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/js/Utils.js b/js/Utils.js
index 7fa154e..974df1f 100644
--- a/js/Utils.js
+++ b/js/Utils.js
@@ -686,6 +686,17 @@ Ext.define('PMG.Utils', {
growMax: 250,
fieldLabel: gettext("Disclaimer"),
},
+ {
+ xtype: 'proxmoxKVComboBox',
+ name: 'position',
+ fieldLabel: gettext("Position"),
+ deleteEmpty: false,
+ value: 'end',
+ comboItems: [
+ ['end', gettext('End')],
+ ['start', gettext('Start')],
+ ],
+ },
],
},
},
--
2.30.2
More information about the pmg-devel
mailing list