{% extends "base.html.twig" %}
{# extension.excerpt #}
{% block style %}
{{ parent() }}
{% include "articles/styles/base-css-logic.html.twig" %}
{% endblock %}
{% block content %}
{% set name = "" %}
{% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
{% set name = app.request.attributes.get('structure').structure.name %}
{% endif %}
{% set values = ['Actualités', 'AAP / AMI'] %}
{% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
<section class="single-article-container">
<article>
<div class="mlr-1em">
{% include "articles-blocks/header.html.twig" %}
{# <div class="creator">{{ sulu_resolve_user(creator).fullName }}</div> #}
{% include "articles/blocks/article-under-header.html.twig" %}
{% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
{% set categories = extension.excerpt.categories %}
{% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
{% endif %}
{% if content.chapo is defined and content.chapo is not empty %}
<div class="fw500 lh28 fs20 text cgrey mt-40px">{{ content.chapo|raw }}</div>
{% endif %}
</div>
{% if content.title is defined and content.title is not empty %}
<div class="mb-3em mt-40px">
<div class="dflex fdc jcsa mlr-1em">
<div class="pb1em">
<h2>Informations pratiques</h2>
</div>
{% if content.structure is defined and content.structure is not empty %}
<div class="pb1em dflex aic">
<div class="icon-ctnr">
<img src="/resources/img/breifcase-icon.svg" alt="Structure" width="16" height="16">
</div>
<span class="diflex">
{{ content.structure | raw }}
</span>
</div>
{% endif %}
{% if content.type_appel is defined and content.type_appel is not empty %}
<div class="pb1em dflex aic">
<div class="icon-ctnr">
<img src="/resources/img/aapami/aapami-icon.svg" alt="Profil" width="15" height="16">
</div>
<span class="diflex">
{% if content.type_appel|raw == "mission"%}
Appel à manifestation d'intérêt
{% elseif content.type_appel|raw == "projet" %}
Appel à projet
{% else %}
{{ content.type_appel | raw }}
{% endif %}
</span>
</div>
{% endif %}
{% if content.limit_date is defined and content.limit_date is not empty %}
<div class="pb1em dflex aic">
<div class="icon-ctnr">
<img src="/resources/img/calendar-icon.svg" alt="Calendrier" width="21" height="20">
</div>
Date limite :
{{ content.limit_date | date("d/m/Y") }}
</div>
{% endif %}
</div>
</div>
{% endif %}
<div class="mlr-1em">
{% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
{% for data in content.main_content %}
{% if data.type == "sub_content" %}
{% include "articles-blocks/articles-content.html.twig" %}
{% endif %}
{% if data.type == "linked_with" %}
{% include "articles-blocks/linked-with.html.twig" %}
{% endif %}
{% if data.type == "see_more" %}
{% include "articles-blocks/see-more.html.twig" %}
{% endif %}
{% endfor %}
{% endif %}
</div>
</article>
</section>
{% endblock %}
{% block javascripts %}
{% include "articles/javascripts/base-article-js.html.twig" %}
{{ parent() }}
{% endblock %}