Files
maquette_backoffice/prestations/html/modifier_slider.html

77 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modifier 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;
}
.container {
max-width: 600px;
margin-top: 40px;
}
.miniature {
width: 150px;
height: 90px;
object-fit: cover;
border-radius: 5px;
margin-bottom: 15px;
}
</style>
</head>
<body>
<div class="container">
<h2 class="text-center mb-5">Modifier une image du slider</h2>
<!-- Messages -->
<div id="errorMsg" class="alert alert-danger d-none"></div>
<div id="successMsg" class="alert alert-success d-none">Slide modifié avec succès !</div>
<form id="editSlideForm">
<!-- Image actuelle -->
<div class="mb-5">
<label class="form-label fw-bold">Image actuelle :</label><br>
<img id="currentImage" src="#" alt="Image actuelle" class="miniature">
</div>
<!-- Remplacer limage -->
<div class="mb-3">
<label class="form-label fw-bold">Nouvelle image (optionnel) :</label>
<input type="file" id="newImage" class="form-control" accept="image/*">
</div>
<!-- Texte ALT -->
<div class="mb-3">
<label class="form-label fw-bold">Texte alternatif (obligatoire)</label>
<input type="text" id="slideAlt" class="form-control">
</div>
<!-- Titre -->
<div class="mb-3">
<label class="form-label fw-bold">Titre du slide (optionnel)</label>
<input type="text" id="slideTitle" class="form-control">
</div>
<!-- Boutons -->
<div class="d-flex gap-3 mt-4">
<a href="../liste_slider/liste_slider.html" class="btn btn-secondary w-50">Annuler</a>
<button type="submit" class="btn btn-primary w-50">Enregistrer</button>
</div>
</form>
</div>
<script src="modifier_slider.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>