diff options
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 %} |