Début du projet
This commit is contained in:
commit
43b1f166d7
28 files changed
+4284
No files matched your search
@@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>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="/" class="actif">Animaux</a>
|
||||
<a href="/archives.html">Archives</a>
|
||||
<a href="/comptes.html" id="lienComptes" hidden>Comptes</a>
|
||||
<button type="button" id="boutonDeconnexion">Déconnexion</button>
|
||||
</nav>
|
||||
<p class="info-session">Connecté : <span id="nomUtilisateur"></span></p>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="statistiques" id="blocStatistiques">
|
||||
<h2>Statistiques</h2>
|
||||
<ul class="liste-stats">
|
||||
<li><span id="statPoules">0</span> poules</li>
|
||||
<li><span id="statCoqs">0</span> coqs</li>
|
||||
<li><span id="statTotal">0</span> actifs</li>
|
||||
<li><span id="statPonte">0</span> en ponte</li>
|
||||
<li><span id="statCouvage">0</span> en couvage</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<div class="titre-avec-action">
|
||||
<h2>Animaux actifs</h2>
|
||||
<button type="button" id="boutonNouvelAnimal">Ajouter un animal</button>
|
||||
</div>
|
||||
|
||||
<div id="listeAnimaux" class="grille-animaux"></div>
|
||||
<p id="messageVide" class="message-vide" hidden>Aucun animal actif pour le moment.</p>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<!-- Formulaire d'ajout / modification -->
|
||||
<dialog id="dialogueAnimal">
|
||||
<form id="formAnimal" method="dialog">
|
||||
<h3 id="titreDialogueAnimal">Ajouter un animal</h3>
|
||||
<input type="hidden" id="animalId">
|
||||
|
||||
<label for="type">Type</label>
|
||||
<select id="type" required>
|
||||
<option value="poule">Poule</option>
|
||||
<option value="coq">Coq</option>
|
||||
</select>
|
||||
|
||||
<label for="couleurBague">Couleur de bague</label>
|
||||
<input type="text" id="couleurBague" placeholder="ex. rouge">
|
||||
|
||||
<label for="numeroBague">Numéro de bague</label>
|
||||
<input type="text" id="numeroBague" placeholder="ex. 12">
|
||||
|
||||
<label for="dateNaissance">Date de naissance / arrivée</label>
|
||||
<input type="date" id="dateNaissance">
|
||||
|
||||
<label for="etatSante">État de santé</label>
|
||||
<select id="etatSante">
|
||||
<option value="bon">Bon</option>
|
||||
<option value="moyen">Moyen</option>
|
||||
<option value="mauvais">Mauvais</option>
|
||||
</select>
|
||||
|
||||
<label for="photo">Photo</label>
|
||||
<input type="file" id="photo" accept="image/*">
|
||||
|
||||
<p id="erreurAnimal" class="erreur" hidden></p>
|
||||
|
||||
<div class="actions-dialogue">
|
||||
<button type="button" id="annulerAnimal" class="secondaire">Annuler</button>
|
||||
<button type="submit">Enregistrer</button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<script src="/js/commun.js"></script>
|
||||
<script src="/js/accueil.js"></script>
|
||||
</body>
|
||||
</html>
|
||||