Skip to content

Commit

Permalink
Use our own is_checkbox tag
Browse files Browse the repository at this point in the history
  • Loading branch information
podliashanyk committed Sep 23, 2024
1 parent e3a4caf commit 3b1f0f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/nav/web/templates/foundation-5/field.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% load forms %}

{% if field.is_hidden %}
{{ field }}
{% else %}
Expand All @@ -8,7 +10,7 @@
{% spaceless %}

{% if field.label %}
{% if field.field.widget.input_type == 'checkbox' %}
{% if field|is_checkbox %}
{{ field }}
{% endif %}

Expand All @@ -28,7 +30,7 @@

{% endif %}

{% if not field.field.widget.input_type == 'checkbox' %}
{% if not field|is_checkbox %}
{{ field }}
{% endif %}

Expand Down

0 comments on commit 3b1f0f5

Please sign in to comment.