2021-05-29 09:22:04 +02:00
|
|
|
{% load i18n bulma %}
|
2020-11-20 19:31:22 +01:00
|
|
|
|
|
|
|
<label class="label {% if field.field.required %}{{ form.required_css_class }}{% endif %}">
|
2020-12-22 01:17:38 +01:00
|
|
|
{{ field.label_tag }}
|
2020-11-20 19:31:22 +01:00
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="control">
|
|
|
|
|
2021-05-26 20:59:11 +02:00
|
|
|
<div class="file has-name is-fullwidth">
|
2020-12-22 01:17:38 +01:00
|
|
|
<label class="file-label">
|
|
|
|
{{ field|bulmafy:'file-input' }}
|
|
|
|
<span class="file-cta">
|
|
|
|
<span class="file-icon">
|
|
|
|
<i class="fas fa-upload"></i>
|
|
|
|
</span>
|
|
|
|
<span class="file-label">
|
|
|
|
{% trans "Choisissez un fichier..." %}
|
|
|
|
</span>
|
2020-11-20 19:31:22 +01:00
|
|
|
</span>
|
2021-05-26 20:59:11 +02:00
|
|
|
<span class="file-name is-expanded has-text-centered">
|
2020-12-22 01:17:38 +01:00
|
|
|
{% trans "Aucun fichier sélectionné" %}
|
2020-11-20 19:31:22 +01:00
|
|
|
</span>
|
2020-12-22 01:17:38 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
2020-11-20 19:31:22 +01:00
|
|
|
|
|
|
|
{% for error in field.errors %}
|
2020-12-19 15:28:32 +01:00
|
|
|
<span class="help is-danger {{ form.error_css_class }}">{{ error }}</span>
|
2020-11-20 19:31:22 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if field.help_text %}
|
2020-12-19 15:28:32 +01:00
|
|
|
<p class="help">
|
|
|
|
{{ field.help_text|safe }}
|
|
|
|
</p>
|
2020-11-20 19:31:22 +01:00
|
|
|
{% endif %}
|
2020-12-19 15:28:32 +01:00
|
|
|
</div>
|