{% if form.vars.value.createdAt.timestamp is defined %} {% set submitValue = submitValue|default('registry.mesurement.action.edit_submit'|trans) %} {% else %} {% set submitValue = submitValue|default('registry.mesurement.action.new_submit'|trans) %} {% endif %} {{ form_start(form) }} {% macro complex_choice(field) %}
{{ form_row(field.check) }}
{{ form_label(field) }}
{{ form_widget(field.comment) }}
{% endmacro %} {% import _self as macro %}
{# GENERAL INFORMATIONS #}

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

{{ form_row(form.name) }} {% if serviceEnabled is defined and serviceEnabled %} {{ form_row(form.service) }} {% endif %} {{ form_row(form.description) }} {#{{ form_row(form.type) }}#} {{ form_row(form.manager) }} {{ form_row(form.priority) }} {{ form_row(form.cost) }} {{ form_row(form.charge) }}
{# APPLICATION #}

{{ 'registry.mesurement.tab.application'|trans }}

{{ form_row(form.status) }} {{ form_row(form.planificationDate) }} {{ form_row(form.comment) }}
{# 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) }}