{% if form.vars.value.createdAt.timestamp is defined %} {% set submitValue = submitValue|default('registry.contractor.action.edit_submit'|trans) %} {% else %} {% set submitValue = submitValue|default('registry.contractor.action.new_submit'|trans) %} {% endif %}
{{ form_start(form) }} {# LEFT #}
{# GENERAL #}

{{ 'global.tab.general'|trans }}

{{ form_row(form.name) }} {% if serviceEnabled is defined and serviceEnabled %} {{ form_row(form.service) }} {% endif %} {{ form_row(form.referent) }} {{ form_row(form.contractualClausesVerified) }} {{ form_row(form.adoptedSecurityFeatures) }} {{ form_row(form.maintainsTreatmentRegister) }} {{ form_row(form.sendingDataOutsideEu) }} {{ form_row(form.otherInformations) }}
{# DPO #}

{{ 'registry.contractor.tab.dpo'|trans }}

{{ form_row(form.hasDpo) }} {{ form_widget(form.dpo) }}
{# RIGHT #}
{# COORDINATES #}

{{ 'registry.contractor.tab.coordinates'|trans }}

{# Hide unused field for legal manager #} {% do form.legalManager.civility.setRendered() %} {% do form.legalManager.job.setRendered() %} {% do form.legalManager.mail.setRendered() %} {% do form.legalManager.phoneNumber.setRendered() %} {{ form_row(form.legalManager.firstName, {'attr': {'autocomplete': 'given-name'}}) }} {{ form_row(form.legalManager.lastName, {'attr': {'autocomplete': 'family-name'}}) }} {{ form_row(form.address.lineOne, {'attr': {'autocomplete': 'address-line1'}}) }} {{ form_row(form.address.lineTwo, {'attr': {'autocomplete': 'address-line2'}}) }} {{ form_row(form.address.zipCode, {'attr': {'autocomplete': 'postal-code'}}) }} {{ form_row(form.address.city, {'attr': {'autocomplete': 'address-level2'}}) }} {{ form_row(form.address.country, {'attr': {'autocomplete': 'country'}}) }} {{ form_row(form.address.mail, {'attr': {'autocomplete': 'email'}}) }} {{ form_row(form.address.phoneNumber, {'attr': {'autocomplete': 'tel-national'}}) }}
{# LINKED MODULES #}

{{ 'global.tab.linked_modules'|trans }}

{{ form_row(form.treatments) }} {{ form_row(form.contractors) }} {% if form.tools is defined %} {{ form_row(form.tools) }} {% endif %} {{ form_row(form.requests) }} {{ form_row(form.violations) }} {{ form_row(form.proofs) }} {{ form_row(form.mesurements) }}
{{ form_end(form) }}