templates: force OS selection in Boot OS form

Prevent backtrace when not OS is selected before the form submit.
Add 'required' attribute to the <input> elements of each OS option
in the Boot OS form.
master 1.1.3-24
Alejandro Sirgo Rica 2024-07-09 16:10:05 +02:00
parent 471cb78676
commit 6ce7dd7625
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ The selected clients have different installed OS:
{% for os_choice in form.os %}
<tr data-toggle="fieldset-entry">
<td class="radio-container">
{{ os_choice(class_="form-control") }}
{{ os_choice(class_="form-control", required=True) }}
<b>{{ os_choice.label.text }}</b>
</td>
<td>