diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-05-14 14:44:37 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-05-16 12:17:21 +0200 |
commit | 8e60e95df6138566ebdf93a7ff74f2badcd98a86 (patch) | |
tree | 9ed9485a4a51e799cc0974307ee4664e1b88310a /ogcp/templates/actions/session.html | |
parent | 7daf4c9ae11f74e6c0179cf300d2393728e0329e (diff) |
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.
Diffstat (limited to 'ogcp/templates/actions/session.html')
-rw-r--r-- | ogcp/templates/actions/session.html | 37 |
1 files changed, 32 insertions, 5 deletions
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') }} +<p> +{% if os_groups|length > 1 %} +The selected clients have different installed OS: +{% endif %} +</p> + +<form class="form-inline" method="POST" id="sessionForm"> + <table class="table table-hover"> + <thead class="thead-light"> + <tr> + <th>{{ _('Operating System') }}</th> + <th>{{ _('Clients') }}</th> + </tr> + </thead> + + <tbody data-target="partitons-fieldset" id="partitionsTable" class="text-left"> + {{ form.hidden_tag() }} + {% for os_choice in form.os %} + <tr data-toggle="fieldset-entry"> + <td class="radio-container"> + {{ os_choice(class_="form-control") }} + <b>{{ os_choice.label.text }}</b> + </td> + <td>{{ ', '.join(os_groups[os_choice.data]) }}</td> + </tr> + {% endfor %} + </tbody> + </table> + <button class="btn btn-success" form="sessionForm"> + {{ _('Boot') }} + </button> +</form> {% endblock %} |