{% extends 'base.html.twig' %} {% block title %}Ajouter un contact client{% endblock %} {% block body %}

Ajouter un contact pour ce client

{{ form_start(form) }} {% if not form.vars.valid %}
    {% for child in form.children %} {% for error in child.vars.errors %}
  • {{ error.message }}
  • {% endfor %} {% endfor %}
{% endif %}
{{ form_label(form.nom, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.nom, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.prenom, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.prenom, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.telephone, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.telephone, {'attr': {'class': 'form-control phone-field'}}) }}
{{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(form.email, {'attr': {'class': 'form-control'}}) }}
{{ form_end(form) }}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}