- commit
- 1f88b22120d6d335fb7dd163becaf63eace17a39
- parent
- d276431c211124d846aa4514a6074a8702fe2a74
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-01-25 15:58
fix rendering of disabled clearable_file_input upstream https://code.djangoproject.com/ticket/31536
Diffstat
| M | django-bs4/templates/django/forms/widgets/clearable_file_input.html | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/django-bs4/templates/django/forms/widgets/clearable_file_input.html b/django-bs4/templates/django/forms/widgets/clearable_file_input.html
@@ -2,7 +2,7 @@ 2 2 {{ widget.initial_text }}: <a href="{{ widget.value.url }}">{{ widget.value }}</a> 3 3 {% if not widget.required %} 4 4 <div class="form-check">5 -1 <input type="checkbox" name="{{ widget.checkbox_name }}" id="{{ widget.checkbox_id }}" class="form-check-input">-1 5 <input type="checkbox" name="{{ widget.checkbox_name }}" id="{{ widget.checkbox_id }}" class="form-check-input"{% if widget.attrs.disabled %} disabled{% endif %}> 6 6 <label for="{{ widget.checkbox_id }}" class="form-check-label">{{ widget.clear_checkbox_label }}</label> 7 7 </div> 8 8 {% endif %}