blob: 4002c0083e1e17ccd1c90523e2a6faa2cc67c79c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{% if widget.is_initial %}
<br>
<p class="file-upload">{{ widget.initial_text }}: <a href="{{ widget.value.url }}">{{ widget.value }}</a>
{% if not widget.required %}
<span class="clearable-file-input">
<input type="checkbox" name="{{ widget.checkbox_name }}" id="{{ widget.checkbox_id }}">
<label for="{{ widget.checkbox_id }}"><strong>{{ widget.clear_checkbox_label }}</strong></label></span>
{% endif %}
<br>
{% endif %}
<input type="{{ widget.type }}" name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>
{% if widget.is_initial %}</p>{% endif %}
|