From 8e60e95df6138566ebdf93a7ff74f2badcd98a86 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 14 May 2024 14:44:37 +0200 Subject: make the boot OS form work over multiple clients Enable working over multiple clients even if their OS configuration is different to greatly improve the user's workflow. Group clients with the same configuration under the same checkbox in the form. Report clients excluded from the boot instruction due to not matching OS configuration. --- ogcp/templates/actions/session.html | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) (limited to 'ogcp/templates/actions/session.html') diff --git a/ogcp/templates/actions/session.html b/ogcp/templates/actions/session.html index 1e16a03..56865fb 100644 --- a/ogcp/templates/actions/session.html +++ b/ogcp/templates/actions/session.html @@ -16,10 +16,37 @@ {{ macros.cmd_selected_clients(selected_clients) }} -{{ wtf.quick_form(form, - action=url_for('action_session'), - method='post', - button_map={'run': 'primary'}, - extra_classes='mx-5') }} +

+{% if os_groups|length > 1 %} +The selected clients have different installed OS: +{% endif %} +

+ +
+ + + + + + + + + + {{ form.hidden_tag() }} + {% for os_choice in form.os %} + + + + + {% endfor %} + +
{{ _('Operating System') }}{{ _('Clients') }}
+ {{ os_choice(class_="form-control") }} + {{ os_choice.label.text }} + {{ ', '.join(os_groups[os_choice.data]) }}
+ +
{% endblock %} -- cgit v1.2.3-18-g5258