48 lines
2.5 KiB
HTML
48 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
|
<head>
|
|
<script src="https://unpkg.com/htmx.org@1.9.11"></script>
|
|
<meta charset="UTF-8">
|
|
<title>Équipement - AS Talange</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<style> body { font-family: 'Inter', sans-serif; } </style>
|
|
</head>
|
|
<body class="bg-gray-50 text-gray-900 flex h-screen overflow-hidden">
|
|
<!-- Sidebar -->
|
|
<div th:replace="~{fragments/sidebar :: sidebar}"></div>
|
|
|
|
<main class="flex-1 flex flex-col h-screen overflow-hidden">
|
|
<header class="h-16 bg-white border-b border-gray-200 flex items-center px-6">
|
|
<h2 class="text-lg font-semibold text-gray-800" th:text="${equipement.id == null ? 'Nouvel Équipement' : 'Modifier Équipement'}">Équipement</h2>
|
|
</header>
|
|
|
|
<div class="flex-1 overflow-auto p-6">
|
|
<div class="max-w-xl mx-auto bg-white rounded-xl shadow-sm border border-gray-100 p-8">
|
|
<form th:action="@{/equipements}" th:object="${equipement}" method="post" class="space-y-6">
|
|
<input type="hidden" th:field="*{id}" />
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700 mb-1">Nom de l'équipement (ex: Maillot)</label>
|
|
<input type="text" th:field="*{nom}" required class="w-full border border-gray-300 rounded-lg px-4 py-2 text-sm focus:ring-2 focus:ring-blue-500 outline-none">
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium text-gray-700 mb-1">Description (ex: Maillot domicile officiel)</label>
|
|
<textarea th:field="*{description}" rows="3" class="w-full border border-gray-300 rounded-lg px-4 py-2 text-sm focus:ring-2 focus:ring-blue-500 outline-none"></textarea>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="pt-4 flex justify-end space-x-3 border-t border-gray-100">
|
|
<a th:href="@{/equipements}" class="px-4 py-2 text-sm font-medium text-gray-700 border border-gray-300 rounded-lg hover:bg-gray-50">Annuler</a>
|
|
<button type="submit" class="px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-lg hover:bg-blue-700">Enregistrer</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|