{% extends "@ChillMain/layout.html.twig" %} {% block title 'Create third party'|trans %} {% block content %}

{{ 'Create third party'|trans }}

{{ form_start(form) }} {% if form.civility is defined %} {{ form_row(form.civility) }} {% endif %} {{ form_row(form.name) }} {% if form.nameCompany is defined %} {{ form_row(form.nameCompany) }} {{ form_row(form.acronym) }} {% endif %} {% if form.profession is defined %} {{ form_row(form.profession) }} {% endif %} {{ form_row(form.type) }} {{ form_row(form.categories) }} {{ form_row(form.telephone) }} {{ form_row(form.email) }}
{{ form_label(form.address) }} {{ form_widget(form.address) }}
{% if thirdParty.address %} {# include vue_address component #} {% include '@ChillMain/Address/_insert_vue_address.html.twig' with { targetEntity: { name: 'thirdparty', id: thirdParty.id }, mode: 'edit', addressId: thirdParty.address.id, buttonSize: 'btn-sm', } %} {# backUrl: path('chill_3party_3party_new'), #} {% else %} {# include vue_address component #} {% include '@ChillMain/Address/_insert_vue_address.html.twig' with { targetEntity: { name: 'thirdparty', id: thirdParty.id }, mode: 'new', buttonSize: 'btn-sm', buttonText: 'Create a new address', modalTitle: 'Create a new address', } %} {% endif %}
{{ form_row(form.comment) }} {{ form_row(form.centers) }} {{ form_row(form.active) }} {{ form_end(form) }}
{% endblock %}