templates/api/blocks/offres-preview-content.html.twig line 1

Open in your IDE?
  1. {% if articleContent.offer_type is defined and articleContent.offer_type is not empty %}
  2.     {% set offer_type = articleContent.offer_type %}
  3. {% endif %}
  4. {% if articleContent.limit_date is defined and articleContent.limit_date is not empty %}
  5.     {% set limit_date = articleContent.limit_date %}
  6. {% endif %}
  7. {% if articleContent.enterprise is defined and articleContent.enterprise is not empty %}
  8.     {% set enterprise = articleContent.enterprise %}
  9. {% endif %}
  10. {% if articleContent.city is defined and articleContent.city is not empty %}
  11.     {% set city = articleContent.city %}
  12. {% endif %}
  13. {% if articleContent.cp is defined and articleContent.cp is not empty %}
  14.     {% set cp = articleContent.cp %}
  15. {% endif %}
  16. <div class="preview-content dflex fdc w100 h100">
  17.     <a href="{{ sulu_content_path(routePath) }}" class="cblack nodeco">
  18.         <div class="fw500 fs20 preview-h3 lh28">{{ title }}</div>
  19.     </a>
  20.     <div class="lh28 fs18 fw600">{{ offer_type }}</div>
  21.     {% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
  22.     
  23.     <div class="enterprise-container dflex fwwrap">
  24.         {% if enterprise is defined and enterprise is not empty %}
  25.             <div class="enterprise dflex mr-24px aife">
  26.                 <img src="/resources/img/offres/trunks-icon.svg" alt="Entreprise" width="16" height="16">
  27.                 {{ enterprise }}
  28.             </div>
  29.         {% endif %}
  30.         {% if city is defined and city is not empty and cp is defined and cp is not empty %}
  31.             <div class="city dflex aife">
  32.                 <img src="/resources/img/offres/pin-icon.svg" alt="Ville" width="14" height="17">{{ city ~ " " ~ cp }}
  33.             </div>
  34.         {% endif %}
  35.     </div>
  36.     
  37.     {% if limit_date is defined and limit_date is not empty %}
  38.         <div class="timeanddate dflex fwwrap">
  39.             <div class="time dflex aic">
  40.                 <img src="/resources/img/aapami/calendar-icon.svg" alt="Date" width="16" height="16">
  41.                 Date limite de candidature
  42.                 {{ limit_date|format_datetime("short", "none") }}
  43.             </div>
  44.         </div>
  45.     {% endif %}
  46.     {% if article.authored is defined and article.authored is not empty %}
  47.         <span class="cgrey fs14 lh20 mta taright">PubliĆ© le
  48.             {{ article.authored|format_datetime('short', 'none', locale='fr') }}
  49.         </span>
  50.     {% endif %}
  51. </div>