84 lines
3.0 KiB
HTML
84 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Modifier une prestation</title>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
|
|
|
|
<style>
|
|
body {
|
|
background: #f4f6f9;
|
|
}
|
|
.container {
|
|
max-width: 700px;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<h2 class="mb-4 text-center">Modifier une prestation</h2>
|
|
|
|
|
|
<!--Erreur-->
|
|
<div id="errorEmpty" class="alert alert-danger d-none">Le titre est obligatoire.</div>
|
|
<div id="errorTechnical" class="alert alert-danger d-none">Une erreur est survenue. Veuillez réessayer plus tard.</div>
|
|
|
|
<!--Succès-->
|
|
<div id="successMsg" class="alert alert-success d-none">Prestation modifiée avec succès !</div>
|
|
|
|
<form id="editPrestationForm">
|
|
|
|
<!--Titre-->
|
|
<div class="mb-3">
|
|
<label class="form-label fw-bold">Titre de la prestation (obligatoire)</label>
|
|
<input type="text" id="prestationTitle" class="form-control" value="Toilettage complet pour chien">
|
|
</div>
|
|
|
|
<!--Type-->
|
|
<div class="mb-3">
|
|
<label class="form-label fw-bold">Type de prestation</label>
|
|
<select id="prestationType" class="form-select">
|
|
<option value="chien" selected>Chien</option>
|
|
<option value="chat">Chat</option>
|
|
</select>
|
|
</div>
|
|
|
|
|
|
<!--Description (liste à puces)-->
|
|
<div class="mb-3">
|
|
<label class="form-label fw-bold">Description de la prestation</label>
|
|
<textarea id="prestationDescription" class="form-control" rows="5">
|
|
• Bain complet
|
|
• Séchage
|
|
• Coupe aux ciseaux
|
|
• Nettoyage des oreilles</textarea>
|
|
</div>
|
|
|
|
<!--Tariffs-->
|
|
<div class="mb-3">
|
|
<label class="form-label fw-bold">Tarif (fourchette)</label>
|
|
<div class="d-flex gap-3">
|
|
<input type="number" id="priceMin" class="form-control" placeholder="Prix min (€)" value="35">
|
|
<input type="number" id="priceMax" class="form-control" placeholder="Prix max (€)" value="60">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Boutons -->
|
|
<div class="d-flex gap-3 mt-4">
|
|
<a href="../../prestations/liste_prestation/liste_prestation.html" class="btn btn-secondary w-50">Annuler</a>
|
|
<button type="submit" class="btn btn-primary w-50">Enregistrer les modifications</button>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<script src="modifier_prestation.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
</body>
|
|
</html> |