{% if articleContent.offer_type is defined and articleContent.offer_type is not empty %}
{% set offer_type = articleContent.offer_type %}
{% endif %}
{% if articleContent.limit_date is defined and articleContent.limit_date is not empty %}
{% set limit_date = articleContent.limit_date %}
{% endif %}
{% if articleContent.enterprise is defined and articleContent.enterprise is not empty %}
{% set enterprise = articleContent.enterprise %}
{% endif %}
{% if articleContent.city is defined and articleContent.city is not empty %}
{% set city = articleContent.city %}
{% endif %}
{% if articleContent.cp is defined and articleContent.cp is not empty %}
{% set cp = articleContent.cp %}
{% endif %}
<div class="preview-content dflex fdc w100 h100">
<a href="{{ sulu_content_path(routePath) }}" class="cblack nodeco">
<div class="fw500 fs20 preview-h3 lh28">{{ title }}</div>
</a>
<div class="lh28 fs18 fw600">{{ offer_type }}</div>
{% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
<div class="enterprise-container dflex fwwrap">
{% if enterprise is defined and enterprise is not empty %}
<div class="enterprise dflex mr-24px aife">
<img src="/resources/img/offres/trunks-icon.svg" alt="Entreprise" width="16" height="16">
{{ enterprise }}
</div>
{% endif %}
{% if city is defined and city is not empty and cp is defined and cp is not empty %}
<div class="city dflex aife">
<img src="/resources/img/offres/pin-icon.svg" alt="Ville" width="14" height="17">{{ city ~ " " ~ cp }}
</div>
{% endif %}
</div>
{% if limit_date is defined and limit_date is not empty %}
<div class="timeanddate dflex fwwrap">
<div class="time dflex aic">
<img src="/resources/img/aapami/calendar-icon.svg" alt="Date" width="16" height="16">
Date limite de candidature
{{ limit_date|format_datetime("short", "none") }}
</div>
</div>
{% endif %}
{% if article.authored is defined and article.authored is not empty %}
<span class="cgrey fs14 lh20 mta taright">PubliƩ le
{{ article.authored|format_datetime('short', 'none', locale='fr') }}
</span>
{% endif %}
</div>