{% extends 'base_pdf.html.twig' %} {% set bodyClass = 'registry_request show' %} {% set menuItem = 'registry_request' %} {% block title %}Demande de {{ object.applicant.firstName }} {{ object.applicant.lastName }}{% endblock %} {% block body_head %}

Demande {{ object }}

{% endblock %} {% block body %} {# REQUEST #}

{{ 'registry.request.tab.request'|trans }}

{% if object.collectivity.isServicesEnabled %} {% endif %}
{{ 'registry.request.label.object'|trans }} {{ object.object|dictionary('registry_request_object') }}
{{ 'global.label.service'|trans }} {{ object.service }}
{{ 'registry.request.label.other_object'|trans }} {{ object.otherObject }}
{{ 'registry.request.label.date'|trans }} {{ object.date|date('d/m/Y') }}
{{ 'registry.request.label.reason'|trans }} {{ object.reason }}
{{ 'registry.request.label.complete'|trans }} {% if object.complete %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %}
{{ 'registry.request.label.legitimate_applicant'|trans }} {% if object.legitimateApplicant %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %}
{{ 'registry.request.label.legitimate_request'|trans }} {% if object.legitimateRequest %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %}
{# ANSWER #}

{{ 'registry.request.tab.answer'|trans }}

{% if object.state is not same as "" %} {% endif %} {% if object.state == constant('App\\Domain\\Registry\\Dictionary\\RequestStateDictionary::STATE_DENIED') %} {% endif %}
{{ 'registry.request.label.state'|trans }} {{ object.state|dictionary('registry_request_state') }}
{{ 'registry.request.label.state_rejection_reason'|trans }} {{ object.stateRejectionReason }}
{{ 'registry.request.label.answer_response'|trans }} {{ object.answer.response|nl2br }}
{{ 'registry.request.label.answer_date'|trans }} {% if object.answer.date %} {{ object.answer.date|date('d/m/Y') }} {% endif %}
{{ 'registry.request.label.answer_type'|trans }} {% if object.answer.type is not null %} {{ object.answer.type|dictionary('registry_request_answer_type') }} {% endif %}
{# APPLICANT #}

{{ 'registry.request.tab.applicant'|trans }}

{{ 'global.label.contact.civility'|trans }} {{ object.applicant.civility|dictionary('registry_request_civility') }}
{{ 'global.label.contact.first_name'|trans }} {{ object.applicant.firstName }}
{{ 'global.label.contact.last_name'|trans }} {{ object.applicant.lastName }}
{{ 'global.label.address.line_one'|trans }} {{ object.applicant.address }}
{{ 'global.label.contact.email'|trans }} {{ object.applicant.mail }}
{{ 'global.label.contact.phone_number'|trans }} {{ object.applicant.phoneNumber }}
{{ 'registry.request.label.concerned_people'|trans }} {% if object.applicant.concernedPeople %} {{ 'global.label.yes'|trans }} {% else %} {{ 'global.label.no'|trans }} {% endif %}
{# CONCERNED PEOPLE #} {% if not object.applicant.concernedPeople %}

{{ 'registry.request.tab.concerned_people'|trans }}

{{ 'global.label.contact.civility'|trans }} {% if object.concernedPeople.civility %} {{ object.concernedPeople.civility|dictionary('registry_request_civility') }} {% endif %}
{{ 'global.label.contact.first_name'|trans }} {{ object.concernedPeople.firstName }}
{{ 'global.label.contact.last_name'|trans }} {{ object.concernedPeople.lastName }}
{{ 'global.label.address.line_one'|trans }} {{ object.concernedPeople.address }}
{{ 'global.label.contact.email'|trans }} {{ object.concernedPeople.mail }}
{{ 'global.label.contact.phone_number'|trans }} {{ object.concernedPeople.phoneNumber }}
{{ 'registry.request.label.link_with_applicant'|trans }} {{ object.concernedPeople.linkWithApplicant }}
{% endif %} {# 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 %}