{% extends 'base.html.twig' %}
{% block title %}{{ setting.siteName }} : offres d'emploi{% endblock %}
{% block body %}
<section class="container py-4">
<div class="row pt-3">
<div class="col">
{# Breadcrumbs #}
<div class="row">
<div class="col small">
<nav style="--bs-breadcrumb-divider: url("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");"
aria-label="breadcrumb">
<ol class="breadcrumb small">
<li class="breadcrumb-item"><a href="{{ path('app_home') }}"
class="text-decoration-none text-dark">Accueil</a></li>
<li class="breadcrumb-item active" aria-current="page">Nos offres d'emploi</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<div class="row my-5">
<div class="col text-center">
<h1 class="color1 fw-700 text-uppercase" data-aos="fade-down" data-aos-duration="2000">{{ setting.offreTitre }}</h1>
<p>Vous pouvez répondre à une offre ou envoyer une candidature spontanée</p>
</div>
</div>
</section>
<div class="container-fluid offres-liste">
<div class="container pt-5 pb-5">
<div class="row mt-2 mb-5">
<div class="col text-center">
<h2 class="color1 fw-bold mb-4" data-aos="fade-up" data-aos-duration="2000">Candidature spontanée</h2>
<a href="{{ path('app_offre_postuler_spontanee') }}" class="button-offre-postuler">
<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> Envoyer une candidature spontanée
</a>
</div>
</div>
{% for message in app.flashes('success') %}
<div id="message-success pb-5">
<div class="text-center alert alert-success alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
{% endfor %}
<div class="row my-5">
<h2 class="color1 fw-bold mb-4 text-center" data-aos="fade-up" data-aos-duration="2000">Offres d'emploi</h2>
<div class="col text-center">
<h4>
{% if offres|length == 1 %}
Il y a {{ offres|length }} offre d'emploi actuellement
{% elseif offres|length > 1 %}
Il y a {{ offres|length }} offres d'emploi actuellement
{% endif %}
</h4>
</div>
</div>
{% if offres is defined and offres|length != 0 %}
{% for offre in offres %}
<div class="row cadre">
<div class="col-lg-2 col-sm-12">
{% if offre.image is defined and offre.image != null %}
<img src="{{ asset('assets/img/offres/' ~ offre.image ) }}" alt="{{ offre.title }}" class="img-fluid d-block mx-auto" style="max-width: 125px; width: 100%;">
{% else %}
<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%;">
{% endif %}
</div>
<div class="col-lg-8 col-sm-12">
<h4 class="color1 fw-bold">{{ offre.title }}</h4>
<span class="color2 text-xsmall fw-bold">Publié le {{ offre.createdAt|date('d-m-Y à H:i:s') }}</span>
<p>Lieu : {{ offre.lieu }}</p>
</div>
<div class="col-lg-2 col-sm-12 d-flex align-items-center">
<a href="{{ path('app_offre_show', {'slug': offre.slug, 'id': offre.id}) }}" class="button-offre">Voir l'offre</a>
</div>
</div>
{% endfor %}
{% else %}
<div class="row mt-4 cadre">
<div class="col text-center">
<h2 class="py-4">Il n'y a aucune offre d'emploi actuellement.</h2>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}