]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/qemu/CreateWizard.js
ui: wizards: allow adding tags in the qemu/lxc create wizard
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 25 Oct 2023 11:09:38 +0000 (13:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Nov 2023 16:02:08 +0000 (17:02 +0100)
commitca97f6301ae00eaf70186ffafc27d5da64e8102f
tree13ef8f4d5871f94574dfaa3f3f9e7228a57f1933
parent7914f5e7b2d6c21cfe0268d144666378b74c2d2c
ui: wizards: allow adding tags in the qemu/lxc create wizard

in the general tab in the advanced section.

For that to work, we introduce a new option for the TagEditContainer
named 'editOnly', which controls now the cancel/finish buttons,
automatically enter edit mode and disable enter/escape keypresses.

We also prevent now the loading of tags while in edit mode, so the tags
don't change while editing (this can be jarring and unexpected).

Then we wrap that all in a FieldSet that implements the Field mixin, so
we can easily use that in the wizard. There we set a maxHeight so that
the field can grow so that it still fits in the wizard.

To properly align the input with the '+' button, we have to add a custom
css class there. (In the hbox we could set the alignment, but this is
not possible in the 'column' layout)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/css/ext6-pve.css
www/manager6/Makefile
www/manager6/form/TagEdit.js
www/manager6/form/TagFieldSet.js [new file with mode: 0644]
www/manager6/lxc/CreateWizard.js
www/manager6/qemu/CreateWizard.js