{% extends 'layout.html.twig' %}
{% block layout %}
<div style="display:block;">
<h2 class="jurisprudence_title" style="text-align: center;">
<strong>{{ jurisprudence.name }}</strong>
</h2>
</div>
<div class="row" style="padding-left:40px; padding-top:20px">
<div class="col-lg-8 col-12">
<div class="" style="display: block">
<br />
<div style="margin-left: 10px; margin-right: 10px;">
<p>
<span style="color:gray">Date de la décision : </span>
<strong>{{ jurisprudence.date|date('d/m/Y') }} </strong>
<br />
<span style="color:gray">Juridiction : </span>
<strong>{{jurisprudence.justiceCourt}}</strong>
<br />
<span style="color:gray">Catégorie : </span>
{% for data in jpData %} <strong> {{ data.name }} </strong> <span style="color:gray"> > </span> {% endfor %} <strong> {{ jurisprudence.category.name }} </strong>
<br />
<span style="color:gray">Mots clés : </span>
{% if jurisprudence.listekeywords|length > 0 %}
{% for data in jurisprudence.listekeywords %}
<a href="{{ path('keyword', {keyword: data.id}) }}">
<span class="badge badge-primary">
{{ data.keyword }}
</span>
</a>
{% endfor %}
{% else %}
Pas de mots clés
{% endif %}
<br />
{% if jurisprudence.pdf is not null and jurisprudence.pdf != '' %}
<br />
<a href="{{ '/jurisprudences-pdf/'~ jurisprudence.pdf }}" target="_blank">
<button type="button" class="btn btn-primary">Télécharger au format PDF</button>
</a>
{% endif %}
</p>
</div>
<br />
<div class="row" style="padding:20px; margin:10px;border: 1px solid gray;border-radius:3px">
<p style="text-align:justify">
{{ jurisprudence.content|raw }}
</p>
</div>
</div>
</div>
{% if jurisprudence.listelexique|length > 0 %}
<div class="col-lg-4 col-12">
<div style="padding:20px; margin:10px;border: 1px solid gray;border-radius:3px">
{% for data in jurisprudence.listelexique %}
<b>{{ data.word }} :</b> {{ data.definition|raw }}
{% endfor %}
</div>
</div>
{% endif %}
</div>
{% endblock %}