templates/articles/offres.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {# extension.excerpt #}
  3. {% block style %}
  4.     {{ parent() }}
  5.     {% include "articles/styles/base-css-logic.html.twig" %}
  6. {% endblock %}
  7. {% block content %}
  8. {% set name = "" %}
  9. {% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
  10.     {% set name = app.request.attributes.get('structure').structure.name %}
  11. {% endif %}
  12. {% set values = "" %}
  13. {% set values = ['Actualités', 'Offres d\'emploi'] %}
  14.     {% include "articles-blocks/breadcrumb.html.twig" with {titles : values} %}
  15.     <section class="single-article-container">
  16.         <article>
  17.             <section>
  18.                 <div class="mlr-1em">
  19.                     {% include "articles-blocks/header.html.twig" %}
  20.                     {# <div class="creator">{{ sulu_resolve_user(creator).fullName }}</div> #}
  21.                     {% include "articles/blocks/article-under-header.html.twig" %}
  22.                     {% if extension.excerpt.categories is defined and extension.excerpt.categories is not empty %}
  23.                         {% set categories = extension.excerpt.categories %}
  24.                         {% include "blocks/previews-from-controller/blocks/categories.html.twig" %}
  25.                     {% endif %}
  26.                     {% if content.chapo is defined and content.chapo is not empty %}
  27.                         <div class="fw500 lh28 fs20 text cgrey mt-40px">{{ content.chapo|raw }}</div>
  28.                     {% endif %}
  29.                 </div>
  30.             </section>
  31.             <div class="main-container w100 plr-1em">
  32.                 <div class="offres-container">
  33.                     {% if content.title is defined and content.title is not empty %}
  34.                         <div class="mb-3em mt-40px">
  35.                             <div class="mb-3em dflex fdc">
  36.                                 <h2>Informations pratiques</h2>
  37.                                 <ul class="dflex fdc aix jcse offres-infos mt-1em">
  38.                                 {% if content.enterprise is defined and content.enterprise is not empty %}
  39.                                     <li class="dflex">
  40.                                         <div class="icon-ctnr">
  41.                                             <img src="/resources/img/breifcase-icon.svg" alt="Structure" width="21" height="21">
  42.                                         </div>
  43.                                         <span class="fw600 fs18 lh28">Structure : {{ content.enterprise }}</span>
  44.                                     </li>
  45.                                 {% endif %}
  46.                                 {% if content.city is defined and content.city is not empty and content.cp is defined  and content.cp is not empty %}
  47.                                     <li>
  48.                                         <div class="icon-ctnr">
  49.                                             <img src="/resources/img/location-icon.svg" alt="Location" width="21" height="20">
  50.                                         </div>
  51.                                         <span>{{ content.city ~ ", " ~ content.cp }}</span>
  52.                                     </li>
  53.                                 {% endif %}
  54.                                 {% if content.limit_date is defined and content.limit_date is not empty %}
  55.                                     <li class="dflex">
  56.                                         <div class="icon-ctnr">
  57.                                             <img src="/resources/img/calendar-icon.svg" alt="Calendrier" width="21" height="20">
  58.                                         </div>
  59.                                         <span class="lh24">Date limite de candidature : {{ content.limit_date | date("d/m/Y") }}</span>
  60.                                     </li>
  61.                                 {% endif %}
  62.                                 {% if content.profil is defined and content.profil is not empty %}
  63.                                     <li class="dflex fdc profil">
  64.                                         <div class="icon-ctnr">
  65.                                             <img src="/resources/img/user-offre-icon.svg" alt="Profil" width="17" height="19">
  66.                                             <span style="white-space: nowrap;">Profil recherché : </span>
  67.                                         </div>
  68.                                         &nbsp;{{ content.profil|raw }}
  69.                                     </li>
  70.                                 {% endif %}
  71.                                 </ul>
  72.                             </div>
  73.                         </div>
  74.                     {% endif %}
  75.                     
  76.                     <div class="mb-1em">
  77.                         <div class="mb-1em"><h2>{{ content.title_offre }}</h2></div>
  78.                         {% if content.summary_offre is defined and content.summary_offre is not empty %}
  79.                             <div class="lh24">{{ content.summary_offre | raw }}</div>
  80.                         {% endif %}
  81.                     </div>
  82.                     <div class="mb-1em">
  83.                         <div class="mb-1em"><h2>{{ content.title_structure }}</h2></div>
  84.                         {% if content.structure is defined and content.structure is not empty %}
  85.                             <div class="lh24">{{ content.structure | raw }}</div>
  86.                         {% endif %}
  87.                     </div>
  88.                 </div>
  89.             </div>
  90.             {% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
  91.                 {% for data in content.main_content %}
  92.                     {% if data.type == "sub_content" %}
  93.                         {% include "articles-blocks/articles-content.html.twig" %}
  94.                     {% endif %}
  95.                     {% if data.type == "linked_with" %}
  96.                         {% include "articles-blocks/linked-with.html.twig" %}
  97.                     {% endif %}
  98.                     {% if data.type == "iframe" %}
  99.                         {% include "blocks/iframe.html.twig" with {block: data} %}
  100.                     {% endif %}
  101.                     {% if data.type == "see_more" %}
  102.                         {% include "articles-blocks/see-more.html.twig" %}
  103.                     {% endif %}
  104.                 {% endfor %}
  105.             {% endif %}
  106.         </article>
  107.     </section>
  108. {% endblock %}
  109. {% block javascripts %}
  110.     {% include "articles/javascripts/base-article-js.html.twig" %}
  111.     {{ parent() }}
  112. {% endblock %}