{% set title = 'misiv.tooltip.' ~ typeKepler ~ '_tooltip' %}

{{ title|trans({}, translationDomain) }}

{{ form_start(form, {'action': path('admin_app_vehicle_misiv_popup_check', { 'id':vehicle.id,'typeKepler': typeKepler,'typeMisiv':'DA','typeRequest':typeRequest })}) }}

{{ 'misiv.popup.subtitle.information_vehicle'|trans({}, translationDomain) }}


{{ form_row(form.purchaseDate) }}

{{ form_row(form.vehicle.licenseNumber) }}
{{ form_row(form.vehicle.vin) }}
{{ form_row(form.vehicle.hasCertificate) }}
{{ form_row(form.vehicle.certificateNumber) }}
{{ form_row(form.vehicle.certificateDate) }}
{{ form_row(form.vehicle.distributionDate) }}
{{ form_row(form.dataTransmission) }}
{{ form_row(form.vehicle.D1Marque) }}
{{ form_row(form.vehicle.D2Version) }}
{{ form_row(form.vehicle.D3Denomination) }}
{{ form_row(form.vehicle.J1Genre) }}

{{ 'misiv.popup.subtitle.information_supplier'|trans({}, translationDomain) }}


{{ form_row(form.supplier.type) }}
{% if vehicle.getPurchase().getNewSupplier().getContact()|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %}
{{ form_row(form.supplier.name) }}
{% endif %} {% if vehicle.getPurchase().getNewSupplier().getContact()|instanceof('AppBundle\\Entity\\Contact\\ContactProfessional') or vehicle.getPurchase().getNewSupplier().getContact()|instanceof('AppBundle\\Entity\\Contact\\ContactGroup') %}
{{ form_row(form.supplier.companyName) }}
{% endif %}
{% if form.supplier.companySiret is defined %} {{ form_row(form.supplier.companySiret) }} {% endif %}

{{ 'misiv.popup.subtitle.information_owner'|trans({}, translationDomain) }}


{{ form_row(form.owner.type) }}

{% if vehicle.getPurchase().getIsDepositSale() and vehicle.getCertification().getNewOwner().getContact()|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %}
{{ form_row(form.owner.lastName) }} {{ form_row(form.owner.firstName) }} {{ form_row(form.owner.sex) }}

{{ form_row(form.owner.birthName) }} {{ form_row(form.owner.birthDate) }} {{ form_row(form.owner.birthPlace) }} {{ form_row(form.owner.birthDepartment) }} {{ form_row(form.owner.birthCountry) }}
{% else %} {{ form_row(form.owner.companyName) }} {{ form_row(form.owner.companySiret) }} {% endif %}

{# Adresse #}
{{ form_label(form.owner.addressNumber) }}
{{ form_widget(form.owner.addressNumber) }}
{{ form_widget(form.owner.addressStreet) }}
{{ form_widget(form.owner.address1) }}
{{ form_widget(form.owner.address2) }}
{{ form_widget(form.owner.addressPostalCode) }}
{{ form_widget(form.owner.addressCity) }}
{{ form_widget(form.owner.addressCountry) }}
{{ form_row(form.pre_entry_to_misiv) }}
{{ form_row(form.send_to_misiv) }}
{{ form_end(form) }}