39 lines
1.6 KiB
39 lines
1.6 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
{% if evenement %}
|
|
<title>{{evenement.titre}}</title>
|
|
{% endif %}
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="css/evenement_details.css"> <!-- You can create a separate CSS file for event details -->
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
{% include "menu.html" %}
|
|
</header>
|
|
|
|
<div class="container mt-4">
|
|
{% if evenement %}
|
|
<h1>Détails de l'Événement : {{evenement.titre}}</h1>
|
|
<div class="event-details">
|
|
<p><strong>Organisateur:</strong> {{ evenement.organisateurId }}</p>
|
|
<p><strong>Date:</strong> {{ evenement.date }}</p>
|
|
<p><strong>Description:</strong> {{ evenement.description }}</p>
|
|
<img src="{{dir}}/public/uploads/{{ evenement.getImage() }}" width="250px" class="img-fluid" alt="Event Image">
|
|
<p><strong>Places disponibles:</strong> {{ evenement.nbPlaceMax }}</p>
|
|
<a href="{{dir}}/listerEvenement" class="btn btn-primary">Retour</a>
|
|
</div>
|
|
{% else %}
|
|
<p>L'événement n'existe pas ou n'est pas disponible.</p>
|
|
{% endif %}
|
|
</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>
|