Spaces:
Running

reservation / mes-reservations.html
masterseb's picture
l'historique doit comporter toutes les réservations pour tous les appareils alors que "mes réservations" doit donner uniquement la liste des réservations de l'utilisateur sélectionné - Initial Deployment
fe51781 verified
Raw History Blame Contribute Delete
10.1 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mes Réservations - Maison du Monde</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-database.js"></script>
<style>
.reservation-card {
transition: all 0.3s ease;
}
.reservation-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-indigo-600 text-white shadow-lg">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16 items-center">
<div class="flex items-center">
<i data-feather="home" class="mr-2"></i>
<span class="text-xl font-semibold">Maison du Monde</span>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
<a href="index.html" class="px-3 py-2 rounded-md text-sm font-medium hover:bg-indigo-500">Tableau de bord</a>
<a href="#" class="px-3 py-2 rounded-md text-sm font-medium bg-indigo-700">Mes réservations</a>
<a href="historique.html" class="px-3 py-2 rounded-md text-sm font-medium hover:bg-indigo-500">Historique</a>
</div>
</div>
<div class="flex items-center">
<div class="relative">
<button id="user-menu" class="flex items-center text-sm focus:outline-none">
<span class="mr-2">Mélinda</span>
<i data-feather="user"></i>
</button>
</div>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="mb-8">
<h1 class="text-3xl font-bold text-gray-800">Mes réservations</h1>
<p class="text-gray-600">Vos réservations actuelles et à venir</p>
</div>
<!-- Current Reservations -->
<div class="mb-8">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Réservations à venir</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Reservation Card 1 -->
<div class="reservation-card bg-white rounded-lg shadow overflow-hidden">
<div class="p-6">
<div class="flex justify-between items-start">
<div>
<h3 class="text-lg font-semibold text-gray-800">iPad MDM1</h3>
<p class="text-gray-500">Demain, 09:00 - 11:00</p>
</div>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
Confirmée
</span>
</div>
<div class="mt-4">
<p class="text-sm text-gray-600">Notes: Formation nouveaux bénévoles</p>
</div>
</div>
<div class="bg-gray-50 px-6 py-4 flex justify-between">
<button class="inline-flex items-center px-3 py-1 border border-transparent text-xs font-medium rounded text-indigo-700 bg-indigo-100 hover:bg-indigo-200">
<i data-feather="edit" class="mr-1 w-3 h-3"></i> Modifier
</button>
<button class="inline-flex items-center px-3 py-1 border border-transparent text-xs font-medium rounded text-red-700 bg-red-100 hover:bg-red-200">
<i data-feather="x" class="mr-1 w-3 h-3"></i> Annuler
</button>
</div>
</div>
<!-- Reservation Card 2 -->
<div class="reservation-card bg-white rounded-lg shadow overflow-hidden">
<div class="p-6">
<div class="flex justify-between items-start">
<div>
<h3 class="text-lg font-semibold text-gray-800">Beamer</h3>
<p class="text-gray-500">Vendredi, 14:00 - 16:00</p>
</div>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
Confirmée
</span>
</div>
<div class="mt-4">
<p class="text-sm text-gray-600">Notes: Réunion équipe</p>
</div>
</div>
<div class="bg-gray-50 px-6 py-4 flex justify-between">
<button class="inline-flex items-center px-3 py-1 border border-transparent text-xs font-medium rounded text-indigo-700 bg-indigo-100 hover:bg-indigo-200">
<i data-feather="edit" class="mr-1 w-3 h-3"></i> Modifier
</button>
<button class="inline-flex items-center px-3 py-1 border border-transparent text-xs font-medium rounded text-red-700 bg-red-100 hover:bg-red-200">
<i data-feather="x" class="mr-1 w-3 h-3"></i> Annuler
</button>
</div>
</div>
</div>
</div>
<!-- Past Reservations -->
<div>
<h2 class="text-xl font-semibold text-gray-800 mb-4">Historique des réservations</h2>
<div class="bg-white shadow overflow-hidden sm:rounded-lg">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Appareil</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Durée</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">iPad MDM1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Lundi, 10:00-12:00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 heures</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Terminée
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Beamer</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Vendredi dernier, 14:00-15:30</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1.5 heures</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Terminée
</span>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">iPad MDM2</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Mercredi dernier, 09:00-11:00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 heures</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Annulée
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script>
// Initialize feather icons
feather.replace();
AOS.init();
</script>
</body>
</html>