django-bs

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

commit
7956672c428f295d212c567f71fa1872d6db9342
parent
70e9d16d1c709e12190cc187d7c4e7e86f8f3cc2
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-01-27 10:42
help text and error inside form-check

Diffstat

M django-bs4/templates/bs4/field.html 12 +++++-------

1 files changed, 5 insertions, 7 deletions


diff --git a/django-bs4/templates/bs4/field.html b/django-bs4/templates/bs4/field.html

@@ -1,11 +1,9 @@
    1    -1 <div class="{{ form_group_class }}">
   -1     1 <div class="{{ form_group_class }} {% if check %}form-check{% endif %}">
    2     2     {% if check %}
    3    -1         <div class="form-check">
    4    -1             {{ field }}
    5    -1             {% if show_label %}
    6    -1                 <label for="{{ field.id_for_label }}" class="form-check-label {% ifequal show_label 'sr-only' %}sr-only{% endifequal %}">{{ field.label }}</label>
    7    -1             {% endif %}
    8    -1         </div>
   -1     3         {{ field }}
   -1     4         {% if show_label %}
   -1     5             <label for="{{ field.id_for_label }}" class="form-check-label {% ifequal show_label 'sr-only' %}sr-only{% endifequal %}">{{ field.label }}</label>
   -1     6         {% endif %}
    9     7     {% else %}
   10     8         {% if show_label %}
   11     9             <label {% ifequal show_label 'sr-only' %}class="sr-only"{% endifequal %} for="{{ field.id_for_label }}">{{ field.label }}</label>