🎨 fixes template formatting

This commit is contained in:
Jean-Louis Jouannic 2022-07-07 21:01:11 +02:00 committed by Christopher Charbonneau Wells
parent 94c557d3b8
commit a453d869a3
1 changed files with 5 additions and 4 deletions

View File

@ -1,9 +1,10 @@
{% load imagekit static %} {% load imagekit static %}
{% if widget.wrap_label %} {% if widget.wrap_label %}
<label{% if widget.attrs.id %} <label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %} class="btn btn-outline-light btn-no-hover">
for="{{ widget.attrs.id }}"{% endif %} {% endif %}
class="btn btn-outline-light btn-no-hover">{% endif %}{% include "django/forms/widgets/input.html" %} {% include "django/forms/widgets/input.html" %}
{% if widget.wrap_label %} {% if widget.wrap_label %}
{% include "core/child_thumbnail.html" with child=widget %} {% include "core/child_thumbnail.html" with child=widget %}
{{ widget.label }}</label>{% endif %} {{ widget.label }}</label>
{% endif %}