{% extends 'base.html.twig' %} {% block body %} {{ form_start(form) }}

{% if mode=="update" %} Modification ILLUSTRATION {% elseif mode=="submit" %} Création ILLUSTRATION {% endif %}

{{ form_widget(form.submit) }} {% if by=="admin" %} Annuler {% elseif by=="update" %} Annuler {% elseif by=="profil" %} Annuler {% elseif by=="illustration" %} Annuler {% else %} Annuler {% endif %} {% if mode=="update" %} Supprimer {% endif %}

{% if app.session.flashbag.has('error') %}
Erreur
{% for flashMessage in app.session.flashbag.get('error') %} {{ flashMessage }}
{% endfor %}
{% endif %} {% if app.session.flashbag.has('notice') %}
Information
{% for flashMessage in app.session.flashbag.get('notice') %} {{ flashMessage }}
{% endfor %}
{% endif %}
Informations
{{ form_row(form.name) }} {{ form_row(form.category) }} {{ form_row(form.description) }}
Illustration
{{ form_widget(form.illustration) }} {{ form_widget(form.width) }} {{ form_widget(form.height) }} Télécharger une Illustration
{{ form_end(form) }} {% endblock %} {% block localjavascript %} $(document).ready(function() { $("#illustration_order").focus(); }); {% endblock %}