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 d7c0a41adb..d20f4f1a11 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,34 +1,35 @@ {% load forms %} +{% spaceless %} + {% if field.is_hidden %} + {{ field }} + {% else %} +
+ {% if field.label %} + {% if field|is_checkbox %} + {{ field }} + {% endif %} -{% if field.is_hidden %} - {{ field }} -{% else %} -
- {% if field.label %} - {% if field|is_checkbox %} - {{ field }} + {% endif %} - - {% endif %} - - {% if not field|is_checkbox %} - {{ field }} - {% endif %} + {% if not field|is_checkbox %} + {{ field }} + {% endif %} - {% for error in field.errors %} - - {{ error }} - - {% endfor %} + {% for error in field.errors %} + + {{ error }} + + {% endfor %} -
-{% endif %} +
+ {% endif %} +{% endspaceless %}