Skip to content

Commit

Permalink
Fix double help text in file field
Browse files Browse the repository at this point in the history
  • Loading branch information
bcvandendool committed May 31, 2021
1 parent c551516 commit 56a178b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crispy_bootstrap5/templates/bootstrap5/layout/field_file.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
{% endif %}
<div class="input-group mb-0 {% if field.errors %} is-invalid{%endif%}">
<input type="{{ widget.data.type }}" name="{{ widget.data.name }}" class="form-control{% if widget.data.attrs.class %} {{ widget.data.attrs.class }}{% endif %}{% if field.errors %} is-invalid{%endif%}"{% if field.field.disabled %} disabled{% endif %}{% for name, value in widget.data.attrs.items %}{% if value is not False and name != 'class' %} {{ name }}{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}{% endfor %}>
{% if not widget.data.is_initial %}
{% include 'bootstrap5/layout/help_text_and_errors.html' %}
{% endif %}
</div>
{% if widget.data.is_initial %}
<div class="input-group mb-0">
{% include 'bootstrap5/layout/help_text_and_errors.html' %}
</div>
{% endif %}
{% endfor %}
</div>

0 comments on commit 56a178b

Please sign in to comment.