{% 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':'CTVO','typeRequest':typeRequest })}) }}

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


{{ 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.dataTransmission) }}

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


{{ form_row(form.supplier.type) }}
{% if form.supplier.name is defined %} {{ form_row(form.supplier.name) }} {% endif %} {% if form.supplier.companyName is defined %} {{ 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.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) }}
{% if vehicle.getCertification().getNewCoHolder().getContact is not empty or vehicle.getCertification().getCoholderQuick() is not empty %}

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


{{ form_row(form.coholder.type) }}
{% if vehicle.getCertification().getNewCoHolder().getContact()|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') or vehicle.getCertification().getCoholderQuick()|instanceof('AppBundle\\Entity\\Contact\\ContactQuick\\ContactQuickIndividual') %}
{{ form_row(form.coholder.lastName) }} {{ form_row(form.coholder.firstName) }} {{ form_row(form.coholder.sex) }} {% if vehicle.getCertification().getNewCoHolder().getContact()|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') and vehicle.getCertification().getNewCoHolder().getContact().getDriver() %} {{ form_row(form.coholder.birthName) }} {% endif %} {% if vehicle.getCertification().getCoholderQuick()|instanceof('AppBundle\\Entity\\Contact\\ContactQuick\\ContactQuickIndividual') %}
{{ form_row(form.coholder.birthName) }} {{ form_row(form.coholder.birthDate) }} {{ form_row(form.coholder.birthPlace) }}
{% endif %}
{% endif %} {% if vehicle.getCertification().getNewCoHolder().getContact()|instanceof('AppBundle\\Entity\\Contact\\ContactProfessional') or vehicle.getCertification().getNewCoHolder().getContact()|instanceof('AppBundle\\Entity\\Contact\\ContactGroup') or vehicle.getCertification().getCoholderQuick()|instanceof('AppBundle\\Entity\\Contact\\ContactQuick\\ContactQuickProfessional') %}
{{ form_row(form.coholder.companyName) }}
{% endif %} {% endif %}
{{ form_row(form.pre_entry_to_misiv) }}
{{ form_row(form.send_to_misiv) }}
{{ form_end(form) }}