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

{% if fgprint is defined and fgprint %} TACHE {% elseif mode=="update" %} Modification TACHE {% elseif mode=="submit" %} Création TACHE {% endif %}

{{ form_widget(form.submit) }} Annuler {% 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.project) }} {{ form_row(form.nature) }} {{ form_row(form.active) }} {{ form_row(form.quantity) }} {{ form_row(form.color) }}
{{ form_end(form) }} {% endblock %} {% block localjavascript %} $(document).ready(function() { $("#task_name").focus(); $("#task_color").spectrum( { type: "text", showAlpha: false } ); }); function myprint() { href=document.location.href; document.location.href=href+"?fgprint=true"; } {% endblock %}