|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<title>Liste des Événements</title>
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="css/evenement.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<header>
|
|
|
|
{% include "menu.html" %}
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="container mt-4">
|
|
|
|
<div class="div_titres">
|
|
|
|
<a href="../public/index.php?action=recherherEvenement" >
|
|
|
|
<img src="assets/search.svg" alt="rechercher" width="30px">
|
|
|
|
</a>
|
|
|
|
<h1>Liste des Événements</h1>
|
|
|
|
<a href="../public/index.php?action=creerEvenement" class="btn btn-primary">Publier événement</a>
|
|
|
|
</div>
|
|
|
|
<ul class="list-group">
|
|
|
|
{% for evenement in evenements %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<div class="infos">
|
|
|
|
<h2>{{ evenement.titre }}</h2>
|
|
|
|
<p><strong>Organisateur:</strong> {{ evenement.organisateurId}}</p>
|
|
|
|
<p><strong>Date:</strong> {{ evenement.date }}</p>
|
|
|
|
<p><strong>Description:</strong> {{ evenement.description }}</p>
|
|
|
|
<img src="data:image/png;base64,{{ evenement.getImage().getBlob() | base64 }}" width="250px" class="img-fluid">
|
|
|
|
<p><strong>Places disponibles:</strong> {{ evenement.nbPlaceMax }}</p>
|
|
|
|
<a href="../public/index.php?action=avoirDetailEvenement&id={{ evenement.id }}" class="btn btn-primary">Détails</a>
|
|
|
|
</div>
|
|
|
|
<a href="../public/index.php?action=supprimerEvenement&id={{ evenement.id }}" id="deleteButton">
|
|
|
|
<img src="assets/close.png" alt="Supprimer" width="20px">
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</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.5.3/dist/umd/popper.min.js"></script>
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|