refonte arborescence + correction des chemins

This commit is contained in:
ben
2025-12-09 17:14:35 +01:00
parent f0fbae505f
commit f79ee1e7b6
40 changed files with 185 additions and 144 deletions

View File

@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ajouter un slide</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
background: #f4f6f9;
padding: 40px;
}
.container {
max-width: 600px;
}
</style>
</head>
<body>
<div class="container">
<h2 class="text-center mb-4">Ajouter une image au slider</h2>
<!-- Erreur : image manquante -->
<div id="errorEmpty" class="alert alert-danger d-none">
Merci de sélectionner une image.
</div>
<!-- Erreur : format invalide -->
<div id="errorFormat" class="alert alert-danger d-none">
Format d'image invalide. Formats acceptés : JPG, PNG, WEBP.
</div>
<!-- Succès -->
<div id="successMsg" class="alert alert-success d-none">
Slide ajouté avec succès !
</div>
<form id="addSlideForm">
<!-- Image -->
<div class="mb-3">
<label class="form-label fw-bold">Image du slide (obligatoire)</label>
<input type="file" id="slideImage" class="form-control" accept="image/*">
</div>
<!-- ALT -->
<div class="mb-3">
<label class="form-label fw-bold">Texte ALT (obligatoire)</label>
<input type="text" id="slideAlt" class="form-control" placeholder="Description de limage">
</div>
<!-- Titre -->
<div class="mb-3">
<label class="form-label fw-bold">Titre (optionnel)</label>
<input type="text" id="slideTitle" class="form-control">
</div>
<!-- Boutons -->
<div class="d-flex gap-3 mt-4">
<a href="../../../slider/liste_slider/liste_slider.html" class="btn btn-secondary w-50">Annuler</a>
<button type="submit" class="btn btn-primary w-50">Ajouter</button>
</div>
</form>
</div>
<script src="ajouter_slider.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>