From 6ce7dd7625e0333c97f992692dbeb2aa0df726f4 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 9 Jul 2024 16:10:05 +0200 Subject: templates: force OS selection in Boot OS form Prevent backtrace when not OS is selected before the form submit. Add 'required' attribute to the elements of each OS option in the Boot OS form. --- ogcp/templates/actions/session.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ogcp/templates/actions/session.html') 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 %} - {{ os_choice(class_="form-control") }} + {{ os_choice(class_="form-control", required=True) }} {{ os_choice.label.text }} -- cgit v1.2.3-18-g5258