Skip to content
GitLab
Explore
Sign in
Register
Show whitespace changes
Inline
Side-by-side
src/main/resources/templates/affectation.html
deleted
100644 → 0
View file @
b6f318ef
<!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>
<head>
<title>
Affectation
</title>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"stylesheet"
href=
"/style.css"
>
<link
href=
"https://fonts.cdnfonts.com/css/star-wars"
rel=
"stylesheet"
>
<style>
@import
url('https://fonts.cdnfonts.com/css/star-wars')
;
</style>
</head>
<body>
<header>
<h1>
affecter un chasseur a un pilote
</h1>
</header>
<main>
<form
action=
"affectation"
>
<fieldset>
<legend>
affecter un chasseur à un pilote
</legend>
<div>
<label
for=
"pilotes"
>
choisir un pilote :
</label>
<select
id=
"pilotes"
name=
"pilotes"
>
<option
th:each=
"pilotes : ${listePilotes}"
th:value=
"${pilotes}"
th:text=
"${pilotes.nom}"
>
</option>
</select>
</div>
<div>
<label
for=
"chasseurs"
>
choisir un chasseur :
</label>
<select
id=
"chasseurs"
name=
"chasseurs"
>
<option
th:each=
"chasseurs : ${listeChasseurs}"
th:value=
"${chasseurs}"
th:text=
"${chasseurs.type_chasseur}"
>
</option>
</select>
</div>
</fieldset>
<input
type=
"submit"
value=
"Valider"
/>
<input
type=
"reset"
value=
"Annuler"
/>
</form>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
retour au menu
</a>
</footer>
</body>
</html>
src/main/resources/templates/clotureMission.html
View file @
e83ba0b0
...
...
@@ -8,45 +8,45 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<title>
cloture mission
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
>
<link
href=
"https://fonts.cdnfonts.com/css/star-wars"
rel=
"stylesheet"
>
<style>
@import
url('https://fonts.cdnfonts.com/css/star-wars')
;
</style>
<link
rel=
"stylesheet"
href=
"/style.css"
/>
</head>
<body>
<header>
<h1>
c
loture
m
ission
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
C
loture
M
ission
</h1>
</header>
<main>
<form
action=
"clotureMission"
method=
"post"
>
<form
class=
'mission'
action=
"/clotureMission"
method=
"post"
>
<div
class=
'box'
>
<label
for=
"missions"
>
Choisir une mission :
</label>
<select
id=
"missions"
name=
"missions"
>
<option
th:each=
"mission : ${missions}"
th:value=
"${mission.idMission}"
th:text=
"${mission.titre}"
></option>
</select>
</div>
<div>
<label
for=
"clotureMission"
>
n
ombre d'heure
</label>
<label
for=
"clotureMission"
>
N
ombre d'heure
</label>
<input
type=
"text"
id=
"heures"
name=
"heures"
/>
</div>
<div>
<label
for=
"resultat"
>
r
esultat
m
ission :
</label>
<label
for=
"resultat"
>
R
esultat
M
ission :
</label>
<select
id=
"resultat"
name=
"resultats"
>
<option
th:each=
"resultat : ${resultatMission}"
th:value=
"${resultat}"
th:text=
"${resultat}"
></option>
</select>
</div>
<div>
<label>
detail
</label>
<div>
<label
for=
"pilote"
>
pilote
</label>
<select
id=
"pilote"
name=
"pilote"
>
<option
th:each=
"pilote : ${etatPilote}"
th:value=
"${etatPilote}"
th:text=
"${etatPilote}"
></option>
</select>
<label
for=
"chasseur"
>
chasseur
</label>
<select
id=
"chasseur"
name=
"chasseur"
>
<option
th:each=
"chasseur : ${etatChasseur}"
th:value=
"${etatChasseur}"
th:text=
"${etatChasseur}"
></option>
</select>
<p>
List pilote(s) dans la mission:
</p>
<div
th:each=
"pilote : ${pilotes}"
>
<p
th:text=
"${pilote.nom}"
></p>
</div>
<p>
List chasseur(s) dans la mission:
</p>
<div
th:each=
"chasseur : ${chasseurs}"
>
<p
th:text=
"${chasseur.type}"
></p>
</div>
</div>
<input
type=
"submit"
value=
"Submit"
/>
<input
type=
"reset"
value=
"Annuler"
/>
</form>
<footer>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/ficheChasseur.html
View file @
e83ba0b0
...
...
@@ -12,25 +12,32 @@
</head>
<body>
<header>
<h1>
f
iche chasseur
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
F
iche chasseur
</h1>
</header>
<main>
<form
th:action=
"@{/ficheChasseur}"
method=
"post"
>
<table>
<tr>
<th>
identifiant
</th>
<th>
t
ype chasseur
</th>
<th>
e
tat chasseur
</th>
<th>
Id
</th>
<th>
T
ype chasseur
</th>
<th>
E
tat chasseur
</th>
</tr>
<tr
th:each=
"chasseur: ${ficheChasseur}"
>
<td
th:text=
"${chasseur.id_chasseur}"
></td>
<td
th:text=
"${chasseur.type_chasseur}"
></td>
<td
th:text=
"${chasseur.etat_chasseur}"
></td>
<td
th:text=
"${chasseur.idChasseur}"
></td>
<td
th:text=
"${chasseur.type}"
></td>
<td>
<select
id=
"etat"
name=
"etat"
>
<option
th:each=
"etat : ${etat}"
th:value=
"${etat}"
th:text=
"${etat}"
></option>
</select>
</td>
</tr>
</table>
<a
th:href=
"@{/listeChasseur}"
>
retour a la liste des chasseurs
</a>
<input
type=
"submit"
value=
"Submit"
/>
</form>
<a
th:href=
"@{/listeChasseur}"
>
Retour a la liste des chasseurs
</a>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/fichePilote.html
View file @
e83ba0b0
...
...
@@ -8,31 +8,47 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<title>
fiche pilote
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
>
<link
href=
"https://fonts.cdnfonts.com/css/star-wars"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"/style.css"
/
>
<link
href=
"https://fonts.cdnfonts.com/css/star-wars"
rel=
"stylesheet"
/
>
<style>
@import
url('https://fonts.cdnfonts.com/css/star-wars')
;
</style>
</head>
<body>
<header>
<h1>
f
iche
p
ilote
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
F
iche
P
ilote
</h1>
</header>
<main>
<p>
prenom :
<span
th:text=
"${pilote.prenom}"
></span></p>
<p>
nom :
<span
th:text=
"${pilote.nom}"
></span></p>
<p>
race :
<span
th:text=
"${pilote.race}"
></span></p>
<p>
age inscription :
<span
th:text=
"${pilote.age}"
></span></p>
<p>
etat :
<span
th:text=
"${pilote.etat}"
></span></p>
<!--besoin db des missions afin pouvoir afficher Missions-->
<p>
nombre d'heures de vol :
</p>
<p>
grade :
<span
th:text=
"${pilote.grade}"
></span></p>
<!--besoin db des missions afin pouvoir afficher Missions-->
<p>
liste des missions
</p>
<p>
type pilote :
<span
th:text=
"${pilote.type}"
></span></p>
<p>
Prenom :
<span
th:text=
"${pilote.prenom}"
></span></p>
<p>
Nom :
<span
th:text=
"${pilote.nom}"
></span></p>
<p>
Race :
<span
th:text=
"${pilote.race}"
></span></p>
<p>
Age à l'inscription :
<span
th:text=
"${pilote.age}"
></span></p>
<p>
Etat :
<span
th:text=
"${pilote.etat}"
></span></p>
<p>
Nombre d'heures de vol :
<span
th:text=
"${nbHeure}"
></span>
</p>
<p>
Grade :
<span
th:text=
"${pilote.grade}"
></span></p>
<p>
Liste des missions :
<tr
th:each=
"mission : ${missions}"
>
<td
th:text=
"${mission.titre}"
></td>
<td
th:text=
"${mission.type}"
></td>
<td
th:text=
"${mission.resultat}"
></td>
<td
th:text=
"${mission.statut}"
></td>
</tr>
</p>
<p>
Rang pilote :
<span
th:text=
"${pilote.type}"
></span></p>
<form
th:action=
"@{/fichePilote}"
method=
"post"
>
<p>
Modifier état :
<select
id=
"etat"
name=
"etat"
>
<option
th:each=
"etat : ${etat}"
th:value=
"${etat}"
th:text=
"${etat}"
></option>
</select>
</p>
<input
type=
"submit"
value=
"Submit"
/>
</form>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/inscriptionPilote.html
View file @
e83ba0b0
...
...
@@ -16,38 +16,42 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>
i
nscription pilote
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
I
nscription pilote
</h1>
</header>
<main>
<form
action=
"inscriptionPilote"
method=
"post"
>
<div
class=
"box"
/>
<div
class=
"inscription"
>
<fieldset>
<legend>
Inscrire un Pilote
</legend>
<label
class=
"label"
/>
<div
class=
"
form-prenom
"
>
<label
for=
"prenom"
>
p
renom
</label>
<div
class=
"
box
"
>
<label
for=
"prenom"
>
P
renom
</label>
<input
type=
"text"
id=
"prenom"
name=
"prenom"
/>
</div>
<div
class=
"
form-nom
"
>
<label
for=
"nom"
>
n
om
</label>
<div
class=
"
box
"
>
<label
class=
"label"
for=
"nom"
>
N
om
</label>
<input
type=
"text"
id=
"nom"
name=
"nom"
/>
<!--th:value="${user.nomnom}"-->
</div>
<div
>
<label
for=
"races"
>
c
hoisir une race :
</label>
<div
class=
'box'
>
<label
class=
"label"
for=
"races"
>
C
hoisir une race :
</label>
<select
id=
"races"
name=
"races"
>
<option
th:each=
"race : ${racePilotes}"
th:value=
"${race}"
th:text=
"${race}"
></option>
</select>
</div>
<div
class=
"
form-age
"
>
<label
for=
"age"
>
a
ge
</label>
<div
class=
"
box
"
>
<label
class=
"label"
for=
"age"
>
A
ge
</label>
<input
type=
"text"
id=
"age"
name=
"age"
/>
</div>
<div
class=
"button"
>
<input
type=
"submit"
value=
"Valider"
/>
<input
type=
"reset"
value=
"Annuler"
/>
</div>
</div>
</form>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/listeChasseur.html
View file @
e83ba0b0
...
...
@@ -12,14 +12,14 @@
</head>
<body>
<header>
<h1>
l
iste chasseur
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
L
iste chasseur
</h1>
</header>
<main>
<table>
<tr>
<th>
identifiant
</th>
<th>
t
ype chasseur
</th>
<th>
e
tat chasseur
</th>
<th>
Id
</th>
<th>
T
ype chasseur
</th>
<th>
E
tat chasseur
</th>
</tr>
<tr
th:each=
"chasseur: ${listeChasseur}"
>
<td>
...
...
@@ -30,10 +30,10 @@
<td
th:text=
"${chasseur.etat}"
></td>
</tr>
</table>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/listeMission.html
View file @
e83ba0b0
...
...
@@ -16,17 +16,10 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>
Liste Missions Terminées
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
Liste Missions Terminées
</h1>
</header>
<main>
<table>
<tr>
<th>
Mission
</th>
<th>
Pilote(s)
</th>
<th>
Chasseur(s)
</th>
<th>
Resultat
</th>
<th>
Nombre d'heures
</th>
</tr>
<tr
th:each=
"mission : ${missions}"
>
<td
th:text=
"${mission.titre}"
></td>
<td>
...
...
@@ -54,11 +47,12 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</span>
</td>
</tr>
</table>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</main>
</body>
</html>
src/main/resources/templates/listePilote.html
View file @
e83ba0b0
...
...
@@ -16,14 +16,15 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>
liste
des
p
ilotes
</h1>
<h1>
Trier
des
P
ilotes
</h1>
</header>
<main>
<div
class=
"tri"
>
<a
th:href=
"@{/listePiloteParType}"
><p>
Trier par rang
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=
"@{/listePiloteParType}"
><p>
Trier par rang
</p></a>
<a
th:href=
"@{/listePiloteParGrade}"
><p>
Trier par grade
</p></a>
<a
th:href=
"@{/listePiloteParEtat}"
><p>
Trier par
e
tat
</p></a>
</div>
<table>
<tr>
<th>
Id pilote
</th>
...
...
@@ -36,7 +37,10 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<th>
Etat
</th>
</tr>
<tr
th:each=
"pilote : ${pilotes}"
>
<td
th:text=
"${pilote.idPilote}"
></td>
<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>
...
...
@@ -44,15 +48,11 @@ 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>
<footer>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</body>
</html>
src/main/resources/templates/listePiloteParEtat.html
View file @
e83ba0b0
...
...
@@ -5,7 +5,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>
TODO supply a titl
e
</title>
<title>
Liste Pilot
e
</title>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
rel=
"stylesheet"
href=
"/style.css"
/>
...
...
@@ -16,12 +16,12 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>
l
iste des pilotes par etat
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
L
iste des pilotes par etat
</h1>
</header>
<main>
<form
action=
"/listePiloteParEtat"
method=
"post"
>
<div>
<label
for=
"etats"
>
c
hoisir un etat :
</label>
<label
for=
"etats"
>
C
hoisir un etat :
</label>
<select
id=
"etats"
name=
"etats"
>
<option
th:each=
"etat : ${etats}"
th:value=
"${etat}"
th:text=
"${etat}"
></option>
</select>
...
...
@@ -55,12 +55,11 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</tr>
</table>
<p>
<a
href=
"/listePilote"
>
r
etour au
liste
pilote
</a>
<a
href=
"/listePilote"
>
R
etour au
x
pilote
s
</a>
</p>
</main>
<footer>
<a
href=
"/menu"
class=
"menu"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</body>
</html>
src/main/resources/templates/listePiloteParGrade.html
View file @
e83ba0b0
...
...
@@ -16,12 +16,12 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>
l
iste des pilotes par grades
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
L
iste des pilotes par grades
</h1>
</header>
<main>
<form
action=
"/listePiloteParGrade"
method=
"post"
>
<div>
<label
for=
"grades"
>
c
hoisir un grade :
</label>
<label
for=
"grades"
>
C
hoisir un grade :
</label>
<select
id=
"grades"
name=
"grades"
>
<option
th:each=
"grade : ${grades}"
th:value=
"${grade}"
th:text=
"${grade}"
></option>
</select>
...
...
@@ -55,7 +55,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</tr>
</table>
<p>
<a
href=
"/listePilote"
>
retour a
la liste
pilote
</a>
<a
href=
"/listePilote"
>
retour a
ux
pilote
s
</a>
</p>
</main>
<footer>
...
...
src/main/resources/templates/listePiloteParType.html
View file @
e83ba0b0
...
...
@@ -16,7 +16,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</head>
<body>
<header>
<h1>
l
iste des pilotes par rang
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
L
iste des pilotes par rang
</h1>
</header>
<main>
<form
action=
"/listePiloteParType"
method=
"post"
>
...
...
@@ -55,7 +55,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</tr>
</table>
<p>
<a
href=
"/listePilote"
>
r
etour au
liste
pilote
</a>
<a
href=
"/listePilote"
>
R
etour au
x
pilote
s
</a>
</p>
</main>
<footer>
...
...
src/main/resources/templates/menu.html
View file @
e83ba0b0
...
...
@@ -3,7 +3,7 @@
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>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<title>
Menu
</title>
<meta
charset=
"UTF-8"
>
...
...
@@ -15,9 +15,8 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
</style>
</head>
<body>
<header>
<h1>
alliance rebelle
</h1>
</header>
<p
class=
'glowing-btn'
>
<span
class=
'glowing-txt'
>
{ AL
<span
class=
'faulty-letter'
>
LI
</span>
ANCE RE
<span
class=
'faulty-letter'
>
BE
</span>
LLE
</p>
<main>
<h2>
Pilote
</h2>
<ul>
...
...
@@ -33,9 +32,10 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<h2>
Mission
</h2>
<ul>
<li><a
href=
"/nouvelleMission"
class=
"menu"
>
Nouvelle mission
</a></li>
<li><a
href=
"/listeMission"
class=
"menu"
>
Liste des missions
terminée
</a></li>
<li><a
href=
"/clotureMission"
class=
"menu"
>
Cl
ô
turer une mission
</a></li>
<li><a
href=
"/listeMission"
class=
"menu"
>
Liste des missions
</a></li>
<li><a
href=
"/clotureMission"
class=
"menu"
>
Cl
o
turer une mission
</a></li>
</ul>
</main>
<footer>
&
#169 Elly Johad Vincent Fabien
</footer>
</body>
</html>
src/main/resources/templates/modifierEtatChasseur.html
View file @
e83ba0b0
...
...
@@ -11,7 +11,7 @@ Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this temp
<link
rel=
"stylesheet"
href=
"/style.css"
>
</head>
<body>
<h1>
Modifier Etat Chasseur
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
Modifier Etat Chasseur
</h1>
<form
action=
"/modifierEtatChasseur"
method=
"post"
>
<div>
<label
for=
"etat"
>
Etat du chasseur
</label>
...
...
src/main/resources/templates/nouveauChasseur.html
View file @
e83ba0b0
...
...
@@ -13,19 +13,19 @@
</head>
<body>
<header>
<h1>
n
ouveau chasseur
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
N
ouveau chasseur
</h1>
</header>
<main>
<form
action=
"/nouveauChasseur"
method=
"post"
>
<div>
<fieldset>
<legend>
s
electionner un chasseur
</legend>
<legend>
S
electionner un chasseur
</legend>
<div
th:each=
"type : ${type}"
>
<input
type=
"radio"
th:id=
"${type}"
th:name=
"typeChasseur"
th:value=
"${type}"
/>
<input
class=
'radio'
type=
"radio"
th:id=
"${type}"
th:name=
"typeChasseur"
th:value=
"${type}"
/>
<label
th:for=
"${type}"
th:text=
"${type}"
></label>
</div>
<div>
<div
class=
'button'
>
<input
type=
"submit"
value=
"Valider"
/>
<input
type=
"reset"
value=
"Annuler"
/>
</div>
...
...
src/main/resources/templates/nouvelleMission.html
View file @
e83ba0b0
<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
...
...
@@ -5,42 +6,76 @@ 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"
>
<link
href=
"https://fonts.cdnfonts.com/css/star-wars"
rel=
"stylesheet"
>
<style>
@import
url('https://fonts.cdnfonts.com/css/star-wars')
;
</style>
<link
rel=
"stylesheet"
href=
"/style.css"
/>
</head>
<body>
<header>
<h1>
n
ouvelle
m
ission
</h1>
<h1>
<span
class=
'faulty-letter'
>
{
</span>
N
ouvelle
M
ission
</h1>
</header>
<main>
<form
action=
"nouvelleMission"
method=
"post"
>
<form
class=
'mission'
th:object=
"${mission}"
th:action=
"@{/nouvelleMission}"
method=
"post"
>
<div
>
<div>
<label
for=
"
m
issions"
>
c
hoisir un
type d
e mission :
</label>
<select
id=
"
m
issions"
name=
"
m
issions"
>
<option
th:each=
"
m
ission : ${typeMissions}"
th:value=
"${
m
ission}"
th:text=
"${
m
ission}"
></option>
<label
for=
"
typeM
issions"
>
C
hoisir une mission :
</label>
<select
id=
"
typeM
issions"
name=
"
typeM
issions"
>
<option
th:each=
"
typeM
ission : ${typeMissions}"
th:value=
"${
typeM
ission}"
th:text=
"${
typeM
ission}"
></option>
</select>
</div>
<div
>
<label
for=
"
missions
"
>
t
itre
</label>
<div
class=
"box"
>
<label
for=
"
titre
"
>
T
itre
</label>
<input
type=
"text"
id=
"titre"
name=
"titre"
/>
</div>
<div>
<a
href=
"/affectation"
>
affecter du personnel a la mission
</a>
<button
type=
"submit"
>
Creer mission
</button>
</div>
</form>
<form
class=
'mission'
th:object=
"${affectation}"
th:action=
"@{/affectation}"
method=
"post"
>
<h2>
Affectation
</h2>
<div
class=
"box"
>
<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>
<div
class=
"box"
>
<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>
<input
type=
"submit"
value=
"Valider"
/>
<input
type=
"reset"
value=
"Annuler"
/>
<button
type=
"submit"
>
Affecter
</button>
</form>
</main>
<p>
Mission id :
<span
th:text=
"${idMission}"
></span>
<span>
est affectée aux :
</span>
</p>
<table>
<tr
th:each=
"listPiloteTemp : ${listPiloteTemps}"
>
<td
th:text=
"${listPiloteTemp.nom}"
></td>
</tr>
<tr
th:each=
"listChasseurTemp : ${listChasseurTemps}"
>
<td
th:text=
"${listChasseurTemp.type}"
></td>
</tr>
</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"
>
r
etour au
m
enu
</a>
<a
href=
"/menu"
class=
"menu"
>
R
etour au
M
enu
</a>
</footer>
</body>
</html>
Prev
1
2
Next