|
|
|
@ -15,13 +15,16 @@
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
<form action="../public/index.php?action=rechercherEvenement" method="post">
|
|
|
|
|
<input type="text" name="recherche" id="recherche" placeholder="Rechercher un événement">
|
|
|
|
|
<button type="submit">
|
|
|
|
|
<img src="assets/search.svg" alt="rechercher" width="30px">
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
<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">
|
|
|
|
|
<!-- <ul class="list-group">
|
|
|
|
|
{% for evenement in evenements %}
|
|
|
|
|
<li class="list-group-item">
|
|
|
|
|
<div class="infos">
|
|
|
|
@ -38,6 +41,28 @@
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul> -->
|
|
|
|
|
<ul class="list-group">
|
|
|
|
|
{% if evenements is not empty %}
|
|
|
|
|
{% 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 %}
|
|
|
|
|
{% else %}
|
|
|
|
|
<li class="list-group-item">Aucun événement trouvé.</li>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|