Files
maquette_backoffice/blog/html/ajouter_categorie.html

63 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ajouter une catégorie</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/node_modules/bootstrap/dist/css/bootstrap.min.css">
<!-- Ton CSS -->
<link rel="stylesheet" href="/css/blog.css">
</head>
<body>
<header>
<nav class="navbar navbar-expand-xxl bg-body-tertiary shadow-sm">
<div class="container-fluid align-items-center">
<a class="navbar-brand" href="#">L'Il'eau chiens - Admin</a>
</div>
</nav>
</header>
<div class="container">
<h2 class="mb-5 text-center">Ajouter une catégorie</h2>
<!-- Messages DOM -->
<div id="messages" class="mb-3"></div>
<form id="addCategoryForm">
<div class="mb-4">
<label class="form-label fw-bold">Nom de la catégorie *</label>
<input
type="text"
id="categoryName"
class="form-control"
placeholder="Actualité, chien, chat…">
</div>
<div class="mb-3">
<label class="form-label fw-bold">Description</label>
<textarea
id="categoryDescription"
class="form-control"
rows="4"
placeholder="Entrez une description (optionnel)">
</textarea>
</div>
<div class="d-flex gap-3 mt-4">
<a href="../html/accueil_blog.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="../js/ajouter_categorie.js"></script>
<script src="/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>