refonte arborescence + correction des chemins
This commit is contained in:
90
prestations/html/ajouter_avant_apres.html
Normal file
90
prestations/html/ajouter_avant_apres.html
Normal file
@@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Ajouter une paire avant/après</title>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
|
||||
|
||||
<style>
|
||||
body {
|
||||
background: #f4f6f9;
|
||||
padding: 30px;
|
||||
}
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin-top: 100px;
|
||||
}
|
||||
.img-preview {
|
||||
max-width: 150px;
|
||||
border-radius: 8px;
|
||||
display: none; /* cachée tant qu'il n'y a pas d'image */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<h2 class="mb-5 text-center">Ajouter une paire avant/après</h2>
|
||||
|
||||
<!-- Message succès -->
|
||||
<div id="successMsg" class="alert alert-success d-none">
|
||||
Nouvelle paire ajoutée avec succès !
|
||||
</div>
|
||||
|
||||
<!-- Message erreur -->
|
||||
<div id="errorMsg" class="alert alert-danger d-none">
|
||||
Merci de remplir tous les champs obligatoires.
|
||||
</div>
|
||||
|
||||
<form id="addPairForm">
|
||||
|
||||
<!-- Titre / label -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Titre de la paire *</label>
|
||||
<input type="text" id="pairTitle" class="form-control" required>
|
||||
</div>
|
||||
|
||||
<!-- Type -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Type *</label>
|
||||
<select id="pairType" class="form-select" required>
|
||||
<option value="">-- Choisir --</option>
|
||||
<option value="Chien">Chien</option>
|
||||
<option value="Chat">Chat</option>
|
||||
<option value="Autre">Autre</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Image AVANT -->
|
||||
<div class="mb-4">
|
||||
<label class="form-label">Image AVANT *</label>
|
||||
<input type="file" id="beforeImage" class="form-control" accept="image/*">
|
||||
|
||||
<img id="beforePreview" class="img-preview border mt-2">
|
||||
</div>
|
||||
|
||||
<!-- Image APRÈS -->
|
||||
<div class="mb-4">
|
||||
<label class="form-label">Image APRÈS *</label>
|
||||
<input type="file" id="afterImage" class="form-control" accept="image/*">
|
||||
|
||||
<img id="afterPreview" class="img-preview border mt-2">
|
||||
</div>
|
||||
|
||||
<!-- Boutons -->
|
||||
<div class="d-flex justify-content-between">
|
||||
<a href="../liste_avant_apres/liste_avant_apres.html" class="btn btn-secondary">Annuler</a>
|
||||
<button type="submit" class="btn btn-primary">Ajouter</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script src="ajouter_avant_apres.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user