From 843ade0164c63822059a7a18e44187bf1b0ba2d0 Mon Sep 17 00:00:00 2001 From: Ilona Podliashanyk Date: Mon, 23 Sep 2024 16:32:25 +0200 Subject: [PATCH 1/3] Uncrispyfy HelpField Used extensively in /alertprofiles/matchfields/ and /threshold/add --- .../custom_crispy_templates/field_helptext_as_icon.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/nav/web/templates/custom_crispy_templates/field_helptext_as_icon.html b/python/nav/web/templates/custom_crispy_templates/field_helptext_as_icon.html index da10f40985..2e8fae2315 100644 --- a/python/nav/web/templates/custom_crispy_templates/field_helptext_as_icon.html +++ b/python/nav/web/templates/custom_crispy_templates/field_helptext_as_icon.html @@ -1,12 +1,12 @@ -{% load crispy_forms_field %} +{% load forms %} {% if field.is_hidden %} {{ field }} {% else %} -
+
{% if field.label %} {% if field|is_checkbox %} - {% crispy_field field %} + {{ field }} {% endif %}