templates/offre/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ setting.siteName }} : offres d'emploi{% endblock %}
  3. {% block body %}
  4. <section class="container py-4">
  5.     <div class="row pt-3">
  6.         <div class="col">
  7.             {# Breadcrumbs #}
  8.             <div class="row">
  9.                 <div class="col small">
  10.                     <nav style="--bs-breadcrumb-divider: url(&#34;data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E&#34;);"
  11.                         aria-label="breadcrumb">
  12.                         <ol class="breadcrumb small">
  13.                             <li class="breadcrumb-item"><a href="{{ path('app_home') }}"
  14.                                     class="text-decoration-none text-dark">Accueil</a></li>
  15.                             <li class="breadcrumb-item active" aria-current="page">Nos offres d'emploi</li>
  16.                         </ol>
  17.                     </nav>
  18.                 </div>
  19.             </div>
  20.         </div>
  21.     </div>
  22.     <div class="row my-5">
  23.         <div class="col text-center">
  24.             <h1 class="color1 fw-700 text-uppercase" data-aos="fade-down" data-aos-duration="2000">{{ setting.offreTitre }}</h1>
  25.             <p>Vous pouvez répondre à une offre ou envoyer une candidature spontanée</p>
  26.         </div>
  27.     </div>
  28. </section>
  29. <div class="container-fluid offres-liste">
  30.     <div class="container pt-5 pb-5">
  31.         <div class="row mt-2 mb-5">
  32.             <div class="col text-center">
  33.                 <h2 class="color1 fw-bold mb-4" data-aos="fade-up" data-aos-duration="2000">Candidature spontanée</h2>
  34.                 <a href="{{ path('app_offre_postuler_spontanee') }}" class="button-offre-postuler">
  35.                     <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm0-2h14V5H5v14Zm5.6-3.225q.2 0 .375-.063t.325-.212l5.675-5.675q.275-.275.275-.675t-.3-.7q-.275-.275-.7-.275t-.7.275L10.6 13.4l-2.175-2.175q-.275-.275-.675-.275t-.7.3q-.275.275-.275.7t.275.7L9.9 15.5q.15.15.325.212t.375.063ZM5 19V5v14Z"/></svg>&nbsp;Envoyer une candidature spontanée
  36.                 </a>
  37.             </div>
  38.         </div>
  39.         {% for message in app.flashes('success') %}
  40.             <div id="message-success pb-5">
  41.                 <div class="text-center alert alert-success alert-dismissible fade show" role="alert">
  42.                     {{ message }}
  43.                     <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  44.                 </div>
  45.             </div>
  46.         {% endfor %}
  47.         <div class="row my-5">
  48.             <h2 class="color1 fw-bold mb-4 text-center" data-aos="fade-up" data-aos-duration="2000">Offres d'emploi</h2>
  49.             <div class="col text-center">
  50.                 <h4>
  51.                     {% if offres|length == 1 %}
  52.                         Il y a {{ offres|length }} offre d'emploi actuellement
  53.                     {% elseif offres|length > 1 %}
  54.                         Il y a {{ offres|length }} offres d'emploi actuellement
  55.                     {% endif %}
  56.                 </h4>
  57.             </div>
  58.         </div>
  59.         {% if offres is defined and offres|length != 0 %}
  60.             {% for offre in offres %}
  61.                 <div class="row cadre">
  62.                     <div class="col-lg-2 col-sm-12">
  63.                         {% if offre.image is defined and offre.image != null %}
  64.                             <img src="{{ asset('assets/img/offres/' ~ offre.image ) }}" alt="{{ offre.title }}" class="img-fluid d-block mx-auto" style="max-width: 125px; width: 100%;">
  65.                         {% else %}
  66.                             <img src="{{ asset('assets/img/logo-laroche-02.png') }}" alt="{{ offre.title }}" class="img-fluid d-block mx-auto" style="max-width: 100px; width: 100%;">
  67.                         {% endif %}
  68.                     </div>
  69.                     <div class="col-lg-8 col-sm-12">
  70.                         <h4 class="color1 fw-bold">{{ offre.title }}</h4>
  71.                         <span class="color2 text-xsmall fw-bold">Publié le {{ offre.createdAt|date('d-m-Y à H:i:s') }}</span>
  72.                         <p>Lieu : {{ offre.lieu }}</p>
  73.                     </div>
  74.                     <div class="col-lg-2 col-sm-12 d-flex align-items-center">
  75.                         <a href="{{ path('app_offre_show', {'slug': offre.slug, 'id': offre.id}) }}" class="button-offre">Voir l'offre</a>
  76.                     </div>
  77.                 </div>
  78.             {% endfor %}
  79.         {% else %}
  80.                 <div class="row mt-4 cadre">
  81.                     <div class="col text-center">
  82.                         <h2 class="py-4">Il n'y a aucune offre d'emploi actuellement.</h2>
  83.                     </div>
  84.                 </div>
  85.         {% endif %}
  86.     </div>
  87. </div>
  88. {% endblock %}