From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Dominik Csapak <d.csapak@proxmox.com>
Subject: [pve-devel] applied: [PATCH manager v2] ui: wizards: allow adding tags in the qemu/lxc create wizard
Date: Mon, 6 Nov 2023 17:12:13 +0100 [thread overview]
Message-ID: <6a444950-86e7-4e6b-8fd1-1dff5ebcdbc6@proxmox.com> (raw)
In-Reply-To: <20231025110938.3854872-1-d.csapak@proxmox.com>
Am 25/10/2023 um 13:09 schrieb Dominik Csapak:
> 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>
> ---
> changes from v1:
> * rebase on master
> * drop unnecessary/applied patches
> * wrap the tagedit in a fieldset to better emphasize that its an
> (unconventional) field, and move the submit logic there, keeping
> the wizard a bit cleaner
>
> www/css/ext6-pve.css | 5 +++
> www/manager6/Makefile | 1 +
> www/manager6/form/TagEdit.js | 35 +++++++++++++++--
> www/manager6/form/TagFieldSet.js | 64 +++++++++++++++++++++++++++++++
> www/manager6/lxc/CreateWizard.js | 7 ++++
> www/manager6/qemu/CreateWizard.js | 9 +++++
> 6 files changed, 117 insertions(+), 4 deletions(-)
> create mode 100644 www/manager6/form/TagFieldSet.js
>
>
applied, thanks!
Albeit it might look slightly better if docked to bottom, but it's in the
advanced view anyway, and most user won't care about some slight layout
difference.
prev parent reply other threads:[~2023-11-06 16:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-25 11:09 [pve-devel] " Dominik Csapak
2023-11-06 16:12 ` Thomas Lamprecht [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a444950-86e7-4e6b-8fd1-1dff5ebcdbc6@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=d.csapak@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox