From c695131429e0b8dff47ee6299643d7967651593c Mon Sep 17 00:00:00 2001 From: Ilona Podliashanyk Date: Fri, 27 Sep 2024 15:12:10 +0200 Subject: [PATCH] Add our own non-crispy template for fieldset --- .../custom_crispy_templates/flat_fieldset.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 python/nav/web/templates/custom_crispy_templates/flat_fieldset.html diff --git a/python/nav/web/templates/custom_crispy_templates/flat_fieldset.html b/python/nav/web/templates/custom_crispy_templates/flat_fieldset.html new file mode 100644 index 0000000000..fc970ee4fa --- /dev/null +++ b/python/nav/web/templates/custom_crispy_templates/flat_fieldset.html @@ -0,0 +1,11 @@ +
+ {% if field.legend %} + {{ field.legend }}{% endif %} + {% block fieldset_fields %} + {% for field in field.fields %} + {% include 'custom_crispy_templates/_form_field.html' %} + {% endfor %} + {% endblock %} +