Skip to content
GitLab
Explore
Sign in
Register
Show whitespace changes
Inline
Side-by-side
src/main/resources/templates/listePilote.html
View file @
dc16fb6e
...
...
@@ -12,50 +12,17 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>
Liste
des Pilote
Par Tris
</h1>
<h1>
Trier
des Pilote
s (inclus Apprentis) :
</h1>
</header>
<a
th:href=
"@{/listePiloteParType}"
><p>
Trier par type de pilote
</p></a>
<a
th:href=
"@{/listePiloteParGrade}"
><p>
Trier par grade de pilote
</p></a>
<a
th:href=
"@{/listePiloteParEtat}"
><p>
Trier par état de pilote
</p></a>
<a
th:href=
"@{/listePiloteParRace}"
><p>
Trier par race de pilote
</p></a>
<a
th:href=
"@{/listePiloteParType}"
><p>
Trier par type
</p></a>
<a
th:href=
"@{/listePiloteParGrade}"
><p>
Trier par grade
</p></a>
<a
th:href=
"@{/listePiloteParEtat}"
><p>
Trier par état
</p></a>
<!--
<form action="listePilote/listePiloteParTri" method="post">
<h2>Filter by :</h2>
<div>
<label for="typePilotes">Type de pilote :</label>
<select id="typePilotes" name="typePilotes">
<option value="selectNone"> Select none</option>
<option th:each="typePilote : ${typePilotes}" th:value="${typePilote}" th:text="${typePilote}"></option>
</select>
</div>
<div>
<label for="gradePilotes">Grade de pilote :</label>
<select id="gradePilotes" name="gradePilotes">
<option value="selectNone"> Select none</option>
<option th:each="gradePilote : ${gradePilotes}" th:value="${gradePilote}" th:text="${gradePilote}"></option>
</select>
</div>
<div>
<label for="etatPilotes">État de pilote :</label>
<select id="etatPilotes" name="etatPilotes">
<option value="selectNone"> Select none</option>
<option th:each="etatPilote : ${etatPilotes}" th:value="${etatPilote}" th:text="${etatPilote}"></option>
</select>
</div>
<div>
<label for="racePilotes">Race de pilote :</label>
<select id="racePilotes" name="racePilotes">
<option value="selectNone"> Select none</option>
<option th:each="racePilote : ${racePilotes}" th:value="${racePilote}" th:text="${racePilote}"></option>
</select>
</div>
<input type="submit" value="Trier"/>
</form>
-->
<h1>
Liste Tous les Pilotes
</h1>
<!--<h1>Trier Tous les Pilotes (sans Apprentis) :</h1>
<a th:href="@{/listePiloteDisponible}"><p>Trier par état disponible</p></a>
-->
<h1>
Liste des Pilotes
</h1>
<table>
<tr>
<th>
Id pilote
</th>
...
...
src/main/resources/templates/listePiloteDisponible.html
0 → 100644
View file @
dc16fb6e
<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
TODO supply a title
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
</head>
<body>
<h1>
Liste des Pilotes disponible (sans apprenti)
</h1>
<table>
<tr>
<th>
Id pilote
</th>
<th>
Nom
</th>
<th>
Prenom
</th>
<th>
Age
</th>
<th>
Race
</th>
<th>
Grade
</th>
<th>
Type
</th>
<th>
Etat
</th>
</tr>
<tr
th:each=
"pilote : ${pilotes}"
>
<td>
<a
th:href=
"'/fichePilote?id_pilote=' + ${pilote.idPilote}"
th:text=
"${pilote.idPilote}"
>
</a>
</td>
<td
th:text=
"${pilote.nom}"
></td>
<td
th:text=
"${pilote.prenom}"
></td>
<td
th:text=
"${pilote.age}"
></td>
<td
th:text=
"${pilote.race}"
></td>
<td
th:text=
"${pilote.grade}"
></td>
<td
th:text=
"${pilote.type}"
></td>
<td
th:text=
"${pilote.etat}"
></td>
</tr>
</table>
<p>
<a
href=
"/listePilote"
>
Retour au Liste Pilote
</a>
</p>
</body>
</html>
src/main/resources/templates/listePiloteParEtat.html
View file @
dc16fb6e
...
...
@@ -10,7 +10,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
</head>
<body>
<h1>
Liste des Pilotes par
Type
s
</h1>
<h1>
Liste des Pilotes par
État
s
</h1>
<form
action=
"/listePiloteParEtat"
method=
"post"
>
<div>
<label
for=
"etats"
>
Choose a race :
</label>
...
...
src/main/resources/templates/listePiloteParGrade.html
View file @
dc16fb6e
...
...
@@ -10,7 +10,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
</head>
<body>
<h1>
Liste des Pilotes par
Types
</h1>
<h1>
Liste des Pilotes par
Grade
</h1>
<form
action=
"/listePiloteParGrade"
method=
"post"
>
<div>
<label
for=
"grades"
>
Choose a race :
</label>
...
...
src/main/resources/templates/nouvelleMission.html
View file @
dc16fb6e
...
...
@@ -8,13 +8,13 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<title>
Nouvelle Mission
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
>
<link
rel=
"stylesheet"
href=
"/style.css"
/
>
</head>
<body>
<header>
<h1>
Nouvelle Mission
</h1>
</header>
<form
action=
"nouvelleMission"
method=
"post"
>
<!--
<form action="
/
nouvelleMission" method="post">
<div>
<label for="missions">Choisir une mission :</label>
<select id="missions" name="missions">
...
...
@@ -22,14 +22,78 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</select>
</div>
<div>
<label
for=
"
missions
"
>
Titre
</label>
<label for="
titre
">Titre</label>
<input type="text" id="titre" name="titre"/>
</div>
<p>Affecter pilote et chasseur</p>
<div>
<button>
<a th:href="@{/affectation}">Affectation</a>
</button>
</div>
<div>
<input type="submit" value="Valider"/>
<input type="reset" value="Annuler"/>
</div>
</form>
-->
<!-- Mission Form -->
<form
th:object=
"${mission}"
th:action=
"@{/nouvelleMission}"
method=
"post"
>
<!-- Mission creation fields -->
<div>
<label
for=
"typeMissions"
>
Choisir une mission :
</label>
<select
id=
"typeMissions"
name=
"typeMissions"
>
<option
th:each=
"typeMission : ${typeMissions}"
th:value=
"${typeMission}"
th:text=
"${typeMission}"
></option>
</select>
</div>
<label
for=
"titre"
>
Titre
</label>
<input
type=
"text"
id=
"titre"
name=
"titre"
/>
<button
type=
"submit"
>
Créer mission
</button>
</form>
<!-- Affectation Form (initially hidden) -->
<!--<form th:if="${affectationFormVisible}" th:object="${affectation}" th:action="@{/affectation/{idMission}}" method="post">-->
<form
th:object=
"${affectation}"
th:action=
"@{/affectation}"
method=
"post"
>
<!--<form th:object="${affectation}" th:action="@{/affectation/{idMission}}" method="post">-->
<h2>
Affectation
</h2>
<label
for=
"piloteSelect"
>
Choisir Pilote:
</label>
<select
id=
"piloteSelect"
name=
"piloteSelect"
>
<option
th:each=
"piloteDispo : ${pilotesDispo}"
th:value=
"${piloteDispo.idPilote}"
th:text=
"${piloteDispo.nom + ' (' + piloteDispo.grade + ' ' + piloteDispo.etat + ')'}"
>
</option>
</select>
<div>
<label
for=
"chasseurSelect"
>
Choisir Chasseur:
</label>
<select
id=
"chasseurSelect"
name=
"chasseurSelect"
>
<option
th:each=
"chasseurDispo : ${chasseursDispo}"
th:value=
"${chasseurDispo.idChasseur}"
th:text=
"${chasseurDispo.type + ' ' + chasseurDispo.etat}"
>
</option>
</select>
</div>
<button
type=
"submit"
>
Submit Affectation
</button>
</form>
<!-- Table to display Pilot and Plane information -->
<table>
<thead>
<tr>
<th>
Pilot Name
</th>
<th>
Plane Name
</th>
</tr>
</thead>
<tbody>
<!-- Data will be populated dynamically -->
</tbody>
</table>
<form
th:if=
"${affectationFormVisible}"
th:object=
"${affectation}"
th:action=
"@{/affectation/{idMission}}"
method=
"post"
>
<button
type=
"submit"
name=
"affectationButton"
>
Affectation
</button>
</form>
<footer>
<a
href=
"/menu"
class=
"menu"
>
Retour au Menu
</a>
</footer>
</body>
</html>
Prev
1
2
Next