Skip to content
Snippets Groups Projects
Commit b51f3397 authored by Boris's avatar Boris
Browse files

Creation de gommettes

parent 24ba89da
Branches
No related tags found
No related merge requests found
Showing
with 27 additions and 1 deletion
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -5,10 +5,35 @@
<ul>
<h1> Liste des élèves: </h1>
<#list eleves as eleve>
<li>${eleve.id} - ${eleve.nomClasse} - ${eleve.firstName} ${eleve.lastName} (${prof.dateNaissance}) </li>
<li>${eleve.id} - ${eleve.nomClasse} - ${eleve.firstName} ${eleve.lastName} (${eleve.dateNaissance}) </li>
<form action="eleves/delete" method="post"">
<input type="hidden" name="id" value="${eleve.id}">
<button type="submit" name="id">Supprimer</button>
</form>
</#list>
</ul>
<h2>Ajouter un élève</h2>
<form action="/eleves/ajout" method="post">
<label for="firstName">Prenom</label>
<input name="firstName" type="text">
<label for="lastName">Nom</label>
<input name="lastName" type="text">
<label for="dateNaissance">Date de Naissance</label>
<input name="dateNaissance" type="text">
<label for="nomClasse">Nom de classe</label>
<input name="nomClasse" type="text">
<button type="submit">Creer</button>
</form>
</body>
</html>
......@@ -8,6 +8,7 @@
<a href="/profs" >Consulter la liste des profs</a>
<a href="/eleves" >Consulter la liste des eleves</a>
</body>
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment