{% for message in app.flashes('error-form-fec') %}
{{ message|raw }}
{% endfor %}

Ajouter un FEC

{% if client.getFecs|length > 0 %}
Attention !
Si un FEC existe déjà avec cette date de clôture, il sera écrasé.
{% endif %}
{{ form_start(form_fec, { 'attr': { 'id': 'form_fec_add', 'class': 'dropzone', 'novalidate': 'novalidate', 'enctype': 'multipart/form-data' } }) }} {# Titre ou instructions #}
Glissez-déposez vos fichiers FEC ici :
{# Conteneur pour afficher les aperçus Dropzone, placé ici avant le bouton submit #}
{# Zone Dropzone (message par défaut) #}
Déposez vos fichiers ici ou cliquez pour sélectionner
{# Token CSRF et client #} {{ form_row(form_fec._token) }} {# Bouton de soumission #} {{ button_label|default('Valider') }} {{ form_end(form_fec, { render_rest: false }) }}
{% if api_ready %}
Importer le FEC depuis l'API :
{% if connections is iterable and connections|length > 0 %}
{% for connection in connections %}
{% if exercices[connection.connectionid] %} {% if exercices[connection.connectionid].success is defined and not exercices[connection.connectionid].success %} {{ exercices[connection.connectionid].message }} {% else %}
{% for exercice in exercices[connection.connectionid] %}
{% endfor %}
{% endif %} {% else %} Aucun exercice trouvé. {% endif %}
{% endfor %}
{% endif %} {#{% if exercices is iterable and exercices|length > 0 %}
{% for exercice in exercices %}
{% endfor %}
{% elseif client.getApi().isAsync() %}

Chargement en cours...

{% else %}

{{ exercices }}

{% endif %}#}
{% endif %}