🔧 fix du bouton dans /event, ajout de dropdown menus dans le header

Co-authored-by: Charpentier Juliette <juliette.charpentier1@etu.u-pec.fr>
This commit is contained in:
2024-06-13 01:44:28 +02:00
parent bd97bbba05
commit 7c326d3908
3 changed files with 16 additions and 6 deletions

View File

@@ -53,17 +53,19 @@
<?php
if (isset($_COOKIE['userData'])) {
if (($role == 'Administrateur') or ($role == 'Organisateur')) {
echo "<button class='submit-button new-event' onclick='window.location.href = \'/events/new\';'>Créer un évènement</button>";
echo '<button class="submit-button new-event" onclick="window.location.href = \'/events/new\';">Créer un évènement</button>';
} else {
echo "<p class='text'>Vous n'êtes pas autorisé à créer un évènement.</p>";
}
}
?>
<?php include ($_SERVER['DOCUMENT_ROOT'] . '/views/footer.php') ?>