Modifier le client
{{ form_start(form) }} {% if not form.vars.valid %}-
{% for child in form.children %}
{% for error in child.vars.errors %}
- {{ error.message }} {% endfor %} {% endfor %}
{{ form_label(form.nom, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.nom, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.adresse1, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.adresse1, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.adresse2, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.adresse2, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.codePostal, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.codePostal, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.ville, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.ville, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.pays, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.pays, {'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'}}) }}
{% if form.adresseFacturation %}
Renseignements de facturation
{{ form_label(form.adresseFacturation, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.adresseFacturation, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.adresseFacturation2, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.adresseFacturation2, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.codePostalFacturation, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.codePostalFacturation, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.villeFacturation, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.villeFacturation, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.paysFacturation, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.paysFacturation, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.actif, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.actif, {'attr': {'class': 'form-check-input', 'id': 'customCheck3'}}) }}
{{ form_label(form.clientCommun, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.clientCommun, {'attr': {'class': 'form-check-input', 'id': 'customCheck'}}) }}
{{ form_end(form) }}