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

{% if fgprint is defined and fgprint %} SERVICE {% elseif mode=="update" %} Modification SERVICE {% elseif mode=="submit" %} Création SERVICE {% 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) }} {% if form.dolibarrcode is defined %} {{ form_row(form.dolibarrcode) }} {% endif %} {{ form_row(form.description) }}
{{ form_end(form) }} {% endblock %} {% block localjavascript %} $(document).ready(function() { $("#service_name").focus(); }); function myprint() { href=document.location.href; document.location.href=href+"?fgprint=true"; } {% endblock %}