You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SAE_2A_FA-Reseau_ALICA/php/templates/OffersList.html

128 lines
5.0 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Alica - Offres</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/offres.css">
</head>
<body>
<header>
{% include "menu.html" %}
</header>
<div class="container mt-4" >
<a href="index.php?action=createOfferForm" type="button" class="btn btn-outline-success mb-4">Publier une offre</a>
<div class="container mt-4">
<div class="d-flex flex-column align-items-center">
<form action="index.php" method="get" class="form-inline flex-wrap mb-4">
<h2 class="mr-3">Filtrer les offres</h2>
<div class="form-group mr-3 flex-column">
<label for="typeContrat">Type de contrat :</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="typeContrat" id="cdd" value="CDD">
<label class="form-check-label" for="cdd">CDD</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="typeContrat" id="cdi" value="CDI">
<label class="form-check-label" for="cdi">CDI</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="typeContrat" id="alternance" value="Alternance">
<label class="form-check-label" for="alternance">Alternance</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="typeContrat" id="stage" value="Stage">
<label class="form-check-label" for="stage">Stage</label>
</div>
</div>
<div class="form-group mr-3 flex-column">
<label for="experience">Expérience :</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="experience" id="junior" value="Junior">
<label class="form-check-label" for="junior">Junior</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="experience" id="senior" value="Senior">
<label class="form-check-label" for="senior">Senior</label>
</div>
</div>
<div class="form-group flex-column">
<label for="niveauEtudes">Niveau d'études :</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac2" value="Bac+2">
<label class="form-check-label" for="bac2">Bac+2</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac3" value="Bac+3">
<label class="form-check-label" for="bac3">Bac+3</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac5" value="Bac+5">
<label class="form-check-label" for="bac5">Bac+5</label>
</div>
</div>
<button type="submit" class="btn btn-primary">Filtrer</button>
</form>
</div>
</div>
</div>
<h1 id="titrePrincipal">Offres d'emploi</h1>
{% for offre in offres %}
<article class="mb-4">
<div class="row1">
<img src="uploads/{{offre.getLogo()}}" class="img-fluid rounded" alt="logo"> <!-- Ajoutez la classe "rounded" pour arrondir les coins -->
<h4>{{ offre.getNom() }}</h4>
</div>
<div class="row2">
<p class="authorDate"><strong>Julien Martin | {{ offre.getDateStringFr()}}</strong></p>
<p>{{ offre.getDescription() }}</p>
</div>
<div class="row3">
<img src="assets/location.png" alt="location">
<p>{{offre.getVille()}}</p>
</div>
<button type="button" class="btn btn-outline-primary btn-sm mb-2 custom-button"
onclick="window.location.href = 'index.php?action=displayOffer&id={{offre.getId()}}';">En savoir plus >
</button>
</article>
{% endfor %}
<nav style="text-align: center;">
{% if numberPages is defined %}
{% if currentPage is defined %}
{% for i in 1..numberPages %}
{% if i == currentPage %}
<a href="index.php?action=consultOffers&page={{i}}" class="active bg-danger">{{ i }}</a>
{% else %}
<a href="index.php?action=consultOffers&page={{i}}">{{ i }}</a>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
</nav>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>