Files
2026-09-25 11:02:14 +02:00

69 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Comptes — Mon Poulailler</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<header class="entete">
<h1><a href="/">Mon Poulailler</a></h1>
<nav>
<a href="/">Animaux</a>
<a href="/archives.html">Archives</a>
<a href="/comptes.html" class="actif" id="lienComptes">Comptes</a>
<button type="button" id="boutonDeconnexion">Déconnexion</button>
</nav>
<p class="info-session">Connecté : <span id="nomUtilisateur"></span></p>
</header>
<main>
<section>
<div class="titre-avec-action">
<h2>Comptes utilisateurs</h2>
<button type="button" id="boutonNouveauCompte">Créer un compte</button>
</div>
<table class="tableau">
<thead>
<tr>
<th>Login</th>
<th>Profil</th>
</tr>
</thead>
<tbody id="listeComptes"></tbody>
</table>
</section>
</main>
<dialog id="dialogueCompte">
<form id="formCompte" method="dialog">
<h3>Créer un compte</h3>
<label for="login">Identifiant</label>
<input type="text" id="login" required>
<label for="motDePasse">Mot de passe</label>
<input type="password" id="motDePasse" required minlength="4">
<label for="profil">Profil</label>
<select id="profil">
<option value="utilisateur">Utilisateur</option>
<option value="admin">Admin</option>
</select>
<p id="erreurCompte" class="erreur" hidden></p>
<div class="actions-dialogue">
<button type="button" id="annulerCompte" class="secondaire">Annuler</button>
<button type="submit">Créer</button>
</div>
</form>
</dialog>
<script src="/js/commun.js"></script>
<script src="/js/comptes.js"></script>
</body>
</html>