django-bs

Bootstrap integration for django using widget templates
git clone https://git.ce9e.org/django-bs.git

commit
19f76572ebd98172f5029e93a3aaaff653e0d2b1
parent
592a16ce36fdf87308ac9ea5bce01ae231b05a4f
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-04-18 07:09
avoid using ifequal

depreacted since 3.1

Diffstat

M django_bs/templates/bs/field.html 6 +++---

1 files changed, 3 insertions, 3 deletions


diff --git a/django_bs/templates/bs/field.html b/django_bs/templates/bs/field.html

@@ -2,14 +2,14 @@
    2     2     {% if check %}
    3     3         {{ field }}
    4     4         {% if show_label %}
    5    -1             <label for="{{ field.id_for_label }}" class="form-check-label {% ifequal show_label 'sr-only' %}visually-hidden{% endifequal %}">{{ field.label }}</label>
   -1     5             <label for="{{ field.id_for_label }}" class="form-check-label {% if show_label == 'sr-only' %}visually-hidden{% endif %}">{{ field.label }}</label>
    6     6         {% endif %}
    7     7     {% else %}
    8     8         {% if show_label %}
    9     9             {% if fieldset %}
   10    -1                 <legend class="form-label {% ifequal show_label 'sr-only' %}visually-hidden{% endifequal %}">{{ field.label }}</legend>
   -1    10                 <legend class="form-label {% if show_label == 'sr-only' %}visually-hidden{% endif %}">{{ field.label }}</legend>
   11    11             {% else %}
   12    -1                 <label class="form-label {% ifequal show_label 'sr-only' %}visually-hidden{% endifequal %}" for="{{ field.id_for_label }}">{{ field.label }}</label>
   -1    12                 <label class="form-label {% if show_label == 'sr-only' %}visually-hidden{% endif %}" for="{{ field.id_for_label }}">{{ field.label }}</label>
   13    13             {% endif %}
   14    14         {% endif %}
   15    15         {% if addon_before or addon_after %}