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

{{ 'registry.violation.tab.information'|trans }}

{% if object.collectivity.isServicesEnabled %} {% endif %}
{{ 'registry.violation.label.date'|trans }} {{ object.date|date('d/m/Y') }}
{{ 'global.label.service'|trans }} {{ object.service }}
{{ 'registry.violation.label.in_progress'|trans }} {% if object.inProgress %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %}
{{ 'registry.violation.label.violation_natures'|trans }}
    {% for violationNature in object.violationNatures %}
  • {{ violationNature|dictionary('registry_violation_nature') }}
  • {% endfor %}
{{ 'registry.violation.label.origins'|trans }}
    {% for origin in object.origins %}
  • {{ origin|dictionary('registry_violation_origin') }}
  • {% endfor %}
{{ 'registry.violation.label.cause'|trans }} {{ object.cause|dictionary('registry_violation_cause') }}
{{ 'registry.violation.label.concerned_data_nature'|trans }}
    {% for data in object.concernedDataNature %}
  • {{ data|dictionary('registry_violation_concerned_data') }}
  • {% endfor %}
{{ 'registry.violation.label.concerned_people_categories'|trans }}
    {% for category in object.concernedPeopleCategories %}
  • {{ category|dictionary('registry_violation_concerned_people') }}
  • {% endfor %}
{{ 'registry.violation.label.nb_affected_rows'|trans }} {{ object.nbAffectedRows }}
{{ 'registry.violation.label.nb_affected_persons'|trans }} {{ object.nbAffectedPersons }}
{# CONSEQUENCE #}

{{ 'registry.violation.tab.consequence'|trans }}

{{ 'registry.violation.label.potential_impacts_nature'|trans }}
    {% for impact in object.potentialImpactsNature %}
  • {{ impact|dictionary('registry_violation_impact') }}
  • {% endfor %}
{{ 'registry.violation.label.gravity'|trans }} {{ object.gravity|dictionary('registry_violation_gravity') }}
{{ 'registry.violation.label.communication'|trans }} {{ object.communication|dictionary('registry_violation_communication') }}
{{ 'registry.violation.label.communication_precision'|trans }} {{ object.communicationPrecision|nl2br }}
{{ 'registry.violation.label.applied_measures_after_violation'|trans }} {{ object.appliedMeasuresAfterViolation|nl2br }}
{{ 'registry.violation.label.notification'|trans }} {% if object.notification %} {{ object.notification|dictionary('registry_violation_notification') }} {% endif %}
{{ 'registry.violation.label.notification_details'|trans }} {{ object.notificationDetails|nl2br }}
{{ 'registry.violation.label.comment'|trans }} {{ object.comment|nl2br }}
{# LINKED MODULES #}

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

{# TREATMENTS #} {% include '_Utils/_show_block_treatments.html.twig' with { treatments: object.treatments } %} {# CONTRACTORS #} {% include '_Utils/_show_block_contractors.html.twig' with { contractors: object.contractors } %} {# TOOLS #} {% if object.collectivity.isHasModuleTools %} {% include '_Utils/_show_block_tools.html.twig' with { tools: object.tools } %} {% endif %} {# REQUESTS #} {% 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 %}