{% extends 'Lenord/base.html.twig' %}
{% block header_epingles %}
{{ include('Lenord/Main/parts/epingles.html.twig') }}
{% endblock %}
{% block header_breadcrumb %}
{% include 'Nordinfo/Main/parts/breadcrumb.html.twig' with {'variation':'le-nord'} %}
{% endblock %}
{% block header_breadcrumb_pdf %}
{% include 'Nordinfo/Main/parts/breadcrumb.html.twig' with {'variation':'le-nord'} %}
{% endblock %}
{% block body %}
<main role="main" id="mainContent" tabindex="-1">
{% include 'Nordinfo/Main/parts/back_btn.html.twig' with {'back_btn_class':'--leNord --postDetails'} %}
<article>
<div class="containerSm containerPostDetails --nordServices mBLg">
<h1 class="__headingMain mTMd--imp mB--imp">{{ document.titre }}</h1>
<div class="containerContent --nordServices">
<div class="__infoDoc">
<p class="__date">{{ document.datePublication|date('d')~' '~trans_month_hash[document.datePublication|date('F')]~' '~document.datePublication|date('Y') }}</p>
{% if document.fichierName2 is null %}<span class="__separator">|</span>
<p class="__size">{{ document.formatFile|upper }}
{% if document.poids is not null %}
{% set poids_arr = document.poids|split(' ') %}
{{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %}
</p>
{% endif %}
<span class="__separator">|</span>
{% if document.types|length > 0 %}
<p class="__type">
{% for type in document.types %}
{% if loop.first %}{% else %}, {% endif %}
<a href="{{ path('espacedoc') }}?types[]={{ type.id }}">{{ type.titre }}</a>
{% endfor %}
</p>
{% endif %}
</div>
<p class="__intro">{{ document.description|raw }}</p>
{% if document.descriptionAccessibilite is not null %}
{% if document.description|length > 0 %}
<br>
{% endif %}
<b>Accessibilité : </b>{{ document.descriptionAccessibilite|replace({'<div>': '', '</div>': ''})|raw }}
{% endif %}
{% if document.import == 1 %}
<a href="{{ document.urlFichierExt }}"
class="linkBlock linkBlock--download" target="_blank">
<div class="linkBlock__inner">
<div><span class="linkBlock__icon"><svg aria-hidden="true" id="f3ce6478-5c65-4999-af52-59a99b9cbf14" data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path
d="M481.79,453.6H309.33L463.76,275.91a24.2,24.2,0,1,0-36.54-31.74L312.42,376.25V34.2a24.21,24.21,0,0,0-48.41,0V376.78L148.75,244.15a24.2,24.2,0,1,0-36.53,31.74L266.66,453.6H94.21a24.2,24.2,0,1,0,0,48.4H481.79a24.2,24.2,0,0,0,0-48.4Z"/></svg></span>
</div>
<div>
<span>
{% if document.libelleFichier1 is not null %}
{{ document.libelleFichier1 }}
{% else %}
{{ document.fichierName }}
{% endif %}
({{ document.formatFile|upper }}
{% if document.poids is not null %}
{% set poids_arr = document.poids|split(' ') %}
- {{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %})
</span>
</div>
</div>
</a>
{% if document.annexeUrl is not null and document.fichierName2 is not null %}
<a href="{{ document.annexeUrl }}"
class="linkBlock linkBlock--download" target="_blank">
<div class="linkBlock__inner">
<div><span class="linkBlock__icon"><svg aria-hidden="true" id="f3ce6478-5c65-4999-af52-59a99b9cbf14" data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path
d="M481.79,453.6H309.33L463.76,275.91a24.2,24.2,0,1,0-36.54-31.74L312.42,376.25V34.2a24.21,24.21,0,0,0-48.41,0V376.78L148.75,244.15a24.2,24.2,0,1,0-36.53,31.74L266.66,453.6H94.21a24.2,24.2,0,1,0,0,48.4H481.79a24.2,24.2,0,0,0,0-48.4Z"/></svg></span>
</div>
<div>
<span>
{% if document.libelleFichier2 is not null %}
{{ document.libelleFichier2 }}
{% else %}
{{ document.fichierName2 }}
{% endif %}
({{ document.formatFile2|upper }}
{% if document.poids2 is not null %}
{% set poids_arr = document.poids2|split(' ') %}
- {{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %})
</span>
</div>
</div>
</a>
{% endif %}
{% else %}
{% if document.fichierName is not null %}
<a href="{{ asset('upload/lenorddocuments/'~document.fichierName) }}"
class="linkBlock linkBlock--download" target="_blank">
<div class="linkBlock__inner">
<div><span class="linkBlock__icon"><svg aria-hidden="true" id="f3ce6478-5c65-4999-af52-59a99b9cbf14" data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path
d="M481.79,453.6H309.33L463.76,275.91a24.2,24.2,0,1,0-36.54-31.74L312.42,376.25V34.2a24.21,24.21,0,0,0-48.41,0V376.78L148.75,244.15a24.2,24.2,0,1,0-36.53,31.74L266.66,453.6H94.21a24.2,24.2,0,1,0,0,48.4H481.79a24.2,24.2,0,0,0,0-48.4Z"/></svg></span>
</div>
<div>
<span>
{% if document.libelleFichier1 is not null %}
{{ document.libelleFichier1 }}
{% else %}
{{ document.fichierName }}
{% endif %}
({{ document.formatFile|upper }}
{% if document.poids is not null %}
{% set poids_arr = document.poids|split(' ') %}
- {{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %})
</span>
</div>
</div>
</a>
{% endif %}
{% if document.fichierName2 is not null %}
<a href="{{ asset('upload/lenorddocuments/'~document.fichierName2) }}"
class="linkBlock linkBlock--download" target="_blank">
<div class="linkBlock__inner">
<div><span class="linkBlock__icon"><svg aria-hidden="true" id="f3ce6478-5c65-4999-af52-59a99b9cbf14" data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path
d="M481.79,453.6H309.33L463.76,275.91a24.2,24.2,0,1,0-36.54-31.74L312.42,376.25V34.2a24.21,24.21,0,0,0-48.41,0V376.78L148.75,244.15a24.2,24.2,0,1,0-36.53,31.74L266.66,453.6H94.21a24.2,24.2,0,1,0,0,48.4H481.79a24.2,24.2,0,0,0,0-48.4Z"/></svg></span>
</div>
<div>
<span>
{% if document.libelleFichier2 is not null %}
{{ document.libelleFichier2 }}
{% else %}
{{ document.fichierName2 }}
{% endif %}
({{ document.formatFile2|upper }}
{% if document.poids2 is not null %}
{% set poids_arr = document.poids2|split(' ') %}
- {{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %})
</span>
</div>
</div>
</a>
{% endif %}
{% if document.fichierName3 is not null %}
<a href="{{ asset('upload/lenorddocuments/'~document.fichierName3) }}"
class="linkBlock linkBlock--download" target="_blank">
<div class="linkBlock__inner">
<div><span class="linkBlock__icon"><svg aria-hidden="true" id="f3ce6478-5c65-4999-af52-59a99b9cbf14" data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path
d="M481.79,453.6H309.33L463.76,275.91a24.2,24.2,0,1,0-36.54-31.74L312.42,376.25V34.2a24.21,24.21,0,0,0-48.41,0V376.78L148.75,244.15a24.2,24.2,0,1,0-36.53,31.74L266.66,453.6H94.21a24.2,24.2,0,1,0,0,48.4H481.79a24.2,24.2,0,0,0,0-48.4Z"/></svg></span>
</div>
<div>
<span>
{% if document.libelleFichier3 is not null %}
{{ document.libelleFichier3 }}
{% else %}
{{ document.fichierName3 }}
{% endif %}
({{ document.formatFile3|upper }}
{% if document.poids3 is not null %}
{% set poids_arr = document.poids3|split(' ') %}
- {{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %})
</span>
</div>
</div>
</a>
{% endif %}
{% if document.fichierName4 is not null %}
<a href="{{ asset('upload/lenorddocuments/'~document.fichierName4) }}"
class="linkBlock linkBlock--download" target="_blank">
<div class="linkBlock__inner">
<div><span class="linkBlock__icon"><svg aria-hidden="true" id="f3ce6478-5c65-4999-af52-59a99b9cbf14" data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path
d="M481.79,453.6H309.33L463.76,275.91a24.2,24.2,0,1,0-36.54-31.74L312.42,376.25V34.2a24.21,24.21,0,0,0-48.41,0V376.78L148.75,244.15a24.2,24.2,0,1,0-36.53,31.74L266.66,453.6H94.21a24.2,24.2,0,1,0,0,48.4H481.79a24.2,24.2,0,0,0,0-48.4Z"/></svg></span>
</div>
<div>
<span>
{% if document.libelle_fichier4|default %}
{{ document.libelleFichier4 }}
{% else %}
{{ document.fichierName4 }}
{% endif %}
({{ document.formatFile4|upper }}
{% if document.poids4 is not null %}
{% set poids_arr = document.poids4|split(' ') %}
- {{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %})
</span>
</div>
</div>
</a>
{% endif %}
{% if document.fichierName5 is not null %}
<a href="{{ asset('upload/lenorddocuments/'~document.fichierName5) }}"
class="linkBlock linkBlock--download" target="_blank">
<div class="linkBlock__inner">
<div><span class="linkBlock__icon"><svg aria-hidden="true" id="f3ce6478-5c65-4999-af52-59a99b9cbf14" data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path
d="M481.79,453.6H309.33L463.76,275.91a24.2,24.2,0,1,0-36.54-31.74L312.42,376.25V34.2a24.21,24.21,0,0,0-48.41,0V376.78L148.75,244.15a24.2,24.2,0,1,0-36.53,31.74L266.66,453.6H94.21a24.2,24.2,0,1,0,0,48.4H481.79a24.2,24.2,0,0,0,0-48.4Z"/></svg></span>
</div>
<div>
<span>
{% if document.libelle_fichier5 is not null %}
{{ document.libelleFichier5 }}
{% else %}
{{ document.fichierName5 }}
{% endif %}
({{ document.formatFile5|upper }}
{% if document.poids5 is not null %}
{% set poids_arr = document.poids5|split(' ') %}
- {{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %})
</span>
</div>
</div>
</a>
{% endif %}
{% if document.fichierName6 is not null %}
<a href="{{ asset('upload/lenorddocuments/'~document.fichierName6) }}"
class="linkBlock linkBlock--download" target="_blank">
<div class="linkBlock__inner">
<div><span class="linkBlock__icon"><svg aria-hidden="true" id="f3ce6478-5c65-4999-af52-59a99b9cbf14" data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path
d="M481.79,453.6H309.33L463.76,275.91a24.2,24.2,0,1,0-36.54-31.74L312.42,376.25V34.2a24.21,24.21,0,0,0-48.41,0V376.78L148.75,244.15a24.2,24.2,0,1,0-36.53,31.74L266.66,453.6H94.21a24.2,24.2,0,1,0,0,48.4H481.79a24.2,24.2,0,0,0,0-48.4Z"/></svg></span>
</div>
<div>
<span>
{% if document.libelle_fichier6 is not null %}
{{ document.libelleFichier6 }}
{% else %}
{{ document.fichierName6 }}
{% endif %}
({{ document.formatFile6|upper }}
{% if document.poids6 is not null %}
{% set poids_arr = document.poids6|split(' ') %}
- {{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>{% endif %})
</span>
</div>
</div>
</a>
{% endif %}
{% endif %}
{{ content_post|raw }}
</div>
</div>
</article>
{% if document.documentsLies is not empty or documents_lies is not empty %}
<div class="bgColorGrey">
<div class="container pBMd pTMd">
<h2 class="headingSection mBMd--imp">Documents liés</h2>
<div class="gridResultsSearchDocs --docDetailsPage">
{% for doc in document.documentsLies %}
<div class="__col">
<a href="{{ path('document', {'slug':doc.aliasUrl}) }}" class="__item">
<div class="__inner">
<div class="__icon">
{{ source('svg/icons/icon-file.svg') }}
</div>
<div class="__details">
<p class="__title">{{ doc.titre }}</p>
{% if doc.formatFile|length > 0 %}
{% if doc.fichierName2 is null %}
<p class="__type">
{{ doc.formatFile|upper }}
{% if doc.poids is not null %}
{% set poids_arr = doc.poids|split(' ') %}
{{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>
{% endif %}
</p>
{% endif %}
{% endif %}
<p class="__date">{{ doc.datePublication|date('d')~' '~trans_month_hash[doc.datePublication|date('F')]~' '~doc.datePublication|date('Y') }}</p>
</div>
</div>
</a>
</div>
{% endfor %}
{% if documents_lies is not empty %}
{% for doc in documents_lies %}
<div class="__col">
<a href="{{ path('document', {'slug':doc.aliasUrl}) }}" class="__item">
<div class="__inner">
<div class="__icon">
{{ source('svg/icons/icon-file.svg') }}
</div>
<div class="__details">
<p class="__title">{{ doc.titre }}</p>
{% if doc.formatFile|length > 0 %}
{% if doc.fichierName2 is null %}
<p class="__type">
{{ doc.formatFile|upper }}
{% if doc.poids is not null %}
{% set poids_arr = doc.poids|split(' ') %}
{{ poids_arr[0] }} <abbr title="mégaoctet">{{ poids_arr[1] }}</abbr>
{% endif %}
</p>
{% endif %}
{% endif %}
<p class="__date">{{ doc.datePublication|date('d')~' '~trans_month_hash[doc.datePublication|date('F')]~' '~doc.datePublication|date('Y') }}</p>
</div>
</div>
</a>
</div>
{% endfor %}
{% endif %}
</div>
</div>
</div>
{% endif %}
</main>
{% endblock %}
{% block footer_top %}
{% if is_preview != 1 %}
<div class="container pB pT">
{% include 'Nordinfo/Main/parts/article-actions.html.twig' with {'post_title':'test', 'post_id':'test', 'is_nord_services':true} %}
</div>
{% endif %}
{% endblock %}