diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-09 16:10:05 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-09 16:42:08 +0200 |
commit | 6ce7dd7625e0333c97f992692dbeb2aa0df726f4 (patch) | |
tree | 1605fbf9e4aab7b6893b6ccfeb4aa92c5e9cd256 | |
parent | 471cb78676a4269cd0809be1bea8d73babaa856f (diff) |
templates: force OS selection in Boot OS form1.1.3-24
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.
-rw-r--r-- | ogcp/templates/actions/session.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/templates/actions/session.html b/ogcp/templates/actions/session.html index 151c6aa..421226d 100644 --- a/ogcp/templates/actions/session.html +++ b/ogcp/templates/actions/session.html @@ -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> |