Skip to content
GitLab
Explore
Sign in
Register
Show whitespace changes
Inline
Side-by-side
src/main/resources/templates/listeMission.html
View file @
9769a9ed
...
...
@@ -19,20 +19,44 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<h1><span
class=
'faulty-letter'
>
{
</span>
Liste Missions Terminées
</h1>
</header>
<main>
<div>
<label
for=
"tri mission"
>
Selection de mission :
</label>
<table>
<tr>
<th>
Nom
</th>
<th>
Pilote
</th>
<th>
Chasseur
</th>
<th>
Etat Mission
</th>
<th>
Nb heures de vol
</th>
</tr>
<tr
th:each=
"mission : ${missions}"
>
<td
th:text=
"${mission.titre}"
></td>
<td>
<span
th:each=
"affectation, iterStat : ${mission.affectation}"
>
<span
th:text=
"${affectation.pilote.nom}"
></span>
<span
th:if=
"${!iterStat.last}"
></br></span>
</span>
</td>
<td>
<span
th:each=
"affectation, iterStat : ${mission.affectation}"
>
<span
th:text=
"${affectation.chasseur.type}"
></span>
<span
th:if=
"${!iterStat.last}"
></br></span>
</span>
</td>
<td>
<span
th:each=
"affectation, iterStat : ${mission.affectation}"
>
<span
th:text=
"${affectation.mission.resultat}"
></span>
<span
th:if=
"${!iterStat.last}"
></br></span>
</span>
</td>
<td>
<span
th:each=
"affectation, iterStat : ${mission.affectation}"
>
<span
th:text=
"${affectation.mission.nbHeure}"
></span>
<span
th:if=
"${!iterStat.last}"
></br></span>
</span>
</td>
</tr>
<select
name=
"mission"
id=
"tri-mission"
>
<option
value=
""
>
-Choisir une option-
</option>
<option
value=
"Terminée"
>
Terminee
</option>
<option
value=
"En cours"
>
En cours
</option>
<option
value=
"Victoire"
>
Victoire
</option>
<option
value=
"Défaite"
>
Defaite
</option>
<option
value=
"Entrainement"
>
Entrainement
</option>
<option
value=
"Combat"
>
Combat
</option>
</select>
</table>
</div>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
Retour au Menu
</a>
...
...
src/main/resources/templates/listePilote.html
View file @
9769a9ed
...
...
@@ -48,6 +48,10 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<td
th:text=
"${pilote.grade}"
></td>
<td
th:text=
"${pilote.type}"
></td>
<td
th:text=
"${pilote.etat}"
></td>
<td>
<a
th:href=
"'/fichePilote?id_pilote=' + ${pilote.idPilote}"
th:text=
"Fiche_Pilote"
>
</a>
</td>
</tr>
</table>
</main>
...
...
src/main/resources/templates/listePiloteDisponible.html
View file @
9769a9ed
...
...
@@ -8,6 +8,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<title>
TODO supply a title
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
/>
</head>
<body>
<h1>
Liste des Pilotes disponible (sans apprenti)
</h1>
...
...
src/main/resources/templates/menu.html
View file @
9769a9ed
...
...
@@ -21,18 +21,19 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<h2>
Pilote
</h2>
<ul>
<li><a
href=
"/inscriptionPilote"
class=
"menu"
>
Inscription d'un nouveau pilote
</a></li>
<li><a
href=
"/listePilote"
class=
"menu"
>
Liste des pilotes actifs
</a></li>
<li><a
href=
"/listePilote"
class=
"menu"
>
Liste des pilotes
</a></li>
<li><a
href=
"/cherchePilote"
class=
"menu"
>
Cherche pilote par nom
</a></li>
</ul>
<h2>
Chasseur
</h2>
<ul>
<li><a
href=
"/nouveauChasseur"
class=
"menu"
>
Ajouter un chasseur
à
la flotte
</a></li>
<li><a
href=
"/nouveauChasseur"
class=
"menu"
>
Ajouter un chasseur
a
la flotte
</a></li>
<li><a
href=
"/listeChasseur"
class=
"menu"
>
Liste des chasseurs
</a></li>
</ul>
<h2>
Mission
</h2>
<ul>
<li><a
href=
"/nouvelleMission"
class=
"menu"
>
Nouvelle mission
</a></li>
<li><a
href=
"/listeMission"
class=
"menu"
>
Liste des missions
</a></li>
<li><a
href=
"/listeMission"
class=
"menu"
>
Liste des missions
terminees
</a></li>
<li><a
href=
"/clotureMission"
class=
"menu"
>
Cloturer une mission
</a></li>
</ul>
</main>
...
...
src/main/resources/templates/nouvelleMission.html
View file @
9769a9ed
<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
...
...
@@ -5,7 +6,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
n
ouvelle
m
ission
</title>
<title>
N
ouvelle
M
ission
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
/>
...
...
@@ -18,6 +19,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<form
class=
'mission'
th:object=
"${mission}"
th:action=
"@{/nouvelleMission}"
method=
"post"
>
<div
>
<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>
...
...
@@ -27,11 +29,15 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<label
for=
"titre"
>
Titre
</label>
<input
type=
"text"
id=
"titre"
name=
"titre"
/>
</div>
<button
type=
"submit"
>
Creer mission
</button>
</div>
<span
th:text=
"${errorMissionPasDeRessources}"
></span>
</form>
<form
class=
'mission'
th:object=
"${affectation}"
th:action=
"@{/affectation}"
method=
"post"
>
<form
id=
"affectation"
class=
'mission'
th:object=
"${affectation}"
th:action=
"@{/affectation
/{idMission}
}"
method=
"post"
>
<h2>
Affectation
</h2>
<div
class=
"box"
>
<label
for=
"piloteSelect"
>
Choisir Pilote:
</label>
...
...
@@ -48,12 +54,15 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
th:text=
"${chasseurDispo.type + ' ' + chasseurDispo.etat}"
>
</option>
</select>
</div>
<button
type=
"submit"
>
Affecter
</button>
</form>
<p>
Mission id :
<span
th:text=
"${idMission}"
></span>
<span>
est affectée aux :
</span></p>
<span>
est affectée aux :
</span>
</p>
<table>
<tr
th:each=
"listPiloteTemp : ${listPiloteTemps}"
>
...
...
@@ -64,6 +73,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</tr>
</table>
<form
th:if=
"${affectationFormVisible}"
th:object=
"${affectation}"
th:action=
"@{/affectation/{idMission}}"
method=
"post"
>
<button
type=
"submit"
name=
"affectationButton"
>
Affectation
</button>
</form>
...
...
starwars2_vincent_johad_elly_fabien.7z
0 → 100644
View file @
9769a9ed
File added
Prev
1
2
Next