{% macro render_field(field,class) %}
{{ field(class=class)}}
{% for error in field.errors %}

{{error}}

{% endfor %}
{% endmacro %} {% extends "base.html" %} {% block content %}
{{ form.hidden_tag() }}

{% block form_title %}{% endblock %}

{% block formulaire %}{% endblock %}
{{ form.sauvegarder(class="button")}}
{{ form.charger(class="button")}}
{{ form.exporter(class="button")}}
{% for error in form.fichier.errors %}

{{error}}

{% endfor %}
{% for error in form.charger.errors %}

{{error}}

{% endfor %} {% if form.referentiel.choices|length != 0 %}
{{ form.supprimer(class="button is-danger") }} {% for error in form.supprimer.errors %}

{{error}}

{% endfor %}
{% endif %}
{% endblock %}