From 0f951dcf029d4af284467543a3afdf5bf6581a20 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 23 Apr 2024 11:16:38 +0100 Subject: switched to Django --- templates/w3/layout/checkboxselectmultiple.html | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 templates/w3/layout/checkboxselectmultiple.html (limited to 'templates/w3/layout/checkboxselectmultiple.html') diff --git a/templates/w3/layout/checkboxselectmultiple.html b/templates/w3/layout/checkboxselectmultiple.html new file mode 100644 index 0000000..c943fc4 --- /dev/null +++ b/templates/w3/layout/checkboxselectmultiple.html @@ -0,0 +1,29 @@ +{% load crispy_forms_filters %} +{% load l10n %} + +
+ + {% for group, options, index in field|optgroups %} + {% if group %}{{ group }}{% endif %} + {% for option in options %} +
+ + + {% if field.errors and forloop.last and not inline_class and forloop.parentloop.last %} + {% include 'w3/layout/field_errors_block.html' %} + {% endif %} +
+ {% endfor %} + {% endfor %} + {% if field.errors and inline_class %} +
+ {# the following input is only meant to allow boostrap to render the error message as it has to be after an invalid input. As the input has no name, no data will be sent. #} + + {% include 'w3/layout/field_errors_block.html' %} +
+ {% endif %} + + {% include 'w3/layout/help_text.html' %} +
-- cgit v1.2.3