{% extends 'base_pdf.html.twig' %} {% set bodyClass = 'registry_mesurement show' %} {% set menuItem = 'registry_mesurement' %} {% block title %}{{ 'registry.tool.title.show'|trans }} - {{ parent() }}{% endblock %} {% block body_head %}{{ object.name }}{% endblock %} {% block body %} {# GENERAL #}

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

{% if object.collectivity.isServicesEnabled %} {% endif %} {% if object.countryType != 'registry.tool.label.country.france' %} {% endif %} {% if object.countryType != 'registry.tool.label.country.france' and object.countryType != 'registry.tool.label.country.eu' %} {% endif %}
{{ 'registry.tool.label.name'|trans }} {{ object.name }}
{{ 'global.label.service'|trans }} {{ object.service }}
{{ 'registry.tool.label.type'|trans }} {{ object.type|dictionary('registry_tool_type') }}
{{ 'registry.tool.label.description'|trans }} {{ object.description|nl2br }}
{{ 'registry.tool.label.editor'|trans }} {{ object.editor }}
{{ 'global.label.linked_contractor'|trans }}
    {% for contractor in object.contractors %}
  • {{ contractor }}
  • {% endfor %}
{{ 'registry.tool.label.prod_date'|trans }} {{ object.prodDate|date('d/m/Y') }}
{{ 'registry.tool.label.country_type'|trans }} {{ object.countryType|trans }}
{{ 'registry.tool.label.country_name'|trans }} {{ object.countryName}}
{{ 'registry.tool.label.country_guarantees'|trans }} {{ object.countryGuarantees}}
{{ 'registry.tool.label.manager'|trans }} {{ object.manager }}
{{ 'registry.tool.label.other_info'|trans }} {{ object.otherInfo|nl2br }}
{# SECURITY #}

{{ 'registry.tool.tab.measures'|trans }}

{{ 'registry.tool.label.archival'|trans }} {% if object.archival.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.archival.comment }}
{{ 'registry.tool.label.encrypted'|trans }} {% if object.encrypted.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.encrypted.comment }}
{{ 'registry.tool.label.access_control'|trans }} {% if object.accessControl.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.accessControl.comment }}
{{ 'registry.tool.label.update'|trans }} {% if object.update.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.update.comment }}
{{ 'registry.tool.label.backup'|trans }} {% if object.backup.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.backup.comment }}
{{ 'registry.tool.label.deletion'|trans }} {% if object.deletion.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.deletion.comment }}
{{ 'registry.tool.label.tracking'|trans }} {% if object.tracking.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.tracking.comment }}
{{ 'registry.tool.label.has_comment'|trans }} {% if object.hasComment.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.hasComment.comment }}
{{ 'registry.tool.label.other'|trans }} {% if object.other.check == true %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %} {{ object.other.comment }}
{# LINKED MODULES #}

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

{# TREATMENTS #} {% include '_Utils/_show_block_treatments.html.twig' with { treatments: object.treatments } %} {# TOOLS #} {% if object.collectivity.hasModuleTools %} {% include '_Utils/_show_block_tools.html.twig' with { tools: object.tools } %} {% endif %} {# CONTRACTORS #} {% include '_Utils/_show_block_requests.html.twig' with { requests: object.requests } %} {# VIOLATIONS #} {% include '_Utils/_show_block_violations.html.twig' with { violations: object.violations } %} {# PROOFS #} {% include '_Utils/_show_block_proofs.html.twig' with { proofs: object.proofs } %} {# MESUREMENTS #} {% include '_Utils/_show_block_mesurements.html.twig' with { mesurements: object.mesurements } %}
{# HISTORIC #}

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

{% if is_granted('ROLE_REFERENT') %} {% endif %}
{{ 'global.label.organization'|trans }} {{ object.collectivity }}
{{ 'global.label.created_at'|trans }} {{ object.createdAt|date('d/m/Y H:i') }}
{{ 'global.label.updated_at'|trans }} {{ object.updatedAt|date('d/m/Y H:i') }}
{{ 'global.label.updated_by'|trans }} {{ object.updatedBy }}
{% endblock %}