Merge branch 'master' of https://forge.chapril.org/CretinsMotorisesIngenieux/Marin
This commit is contained in:
commit
30f8792a6f
7
app.py
7
app.py
@ -5,8 +5,15 @@ import pages
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
@app.route('/home')
|
||||
@app.route('/home/')
|
||||
def main():
|
||||
return pages.main()
|
||||
|
||||
@app.errorhandler(404)
|
||||
def error(e):
|
||||
return pages.error()
|
||||
|
||||
|
||||
if __name__=="__main__":
|
||||
app.run(debug=True)
|
||||
|
5
pages.py
5
pages.py
@ -4,4 +4,7 @@ import definitions as lib
|
||||
# Fonctions qui seront associées à des URLs
|
||||
|
||||
def main():
|
||||
return render_template("main.html")
|
||||
return render_template("index.html")
|
||||
|
||||
def error():
|
||||
return render_template("error.html")
|
||||
|
41
templates/bateau_temp.html
Normal file
41
templates/bateau_temp.html
Normal file
@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- saved from url=(0055)file:///C:/Users/rugja/Marin/templates/bateau_temp.html -->
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<title>{{nom}}</title>
|
||||
<link href="file:///C:/Users/rugja/Marin/templates/style.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{nom}}}</h1>
|
||||
<table>
|
||||
<tbody><tr>
|
||||
<th>Nom</th>
|
||||
<th>{{NomBateau}}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Constructeur</th>
|
||||
<th>{{nom}}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Dimensions</th>
|
||||
<th>{{Dimensions}}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Installation</th>
|
||||
<th>{{Date}}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Condamnation</th>
|
||||
<th>{{Date}}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Origine</th>
|
||||
<th>{{ville}}</th>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<p>
|
||||
{{HistoireBateau}}
|
||||
</p>
|
||||
|
||||
|
||||
</body></html>
|
11
templates/error.html
Normal file
11
templates/error.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href="/static/style.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Erreur !</h1>
|
||||
<p>Retour à <a href="/home">la page d'accueil</a></p>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,24 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title> Sauveteurs du dunkerquois</title>
|
||||
<link href="static/style.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<div class="LOGO-DUO">
|
||||
<img src="https://sauveteurdudunkerquois.fr/wp-content/uploads/2021/09/LOGO-DUO.png" width="200"
|
||||
height="100">
|
||||
</div>
|
||||
<br>
|
||||
<form method="get" >
|
||||
<input type="text"
|
||||
placeholder="Rechercher un sauveteur, un bateau, une personne sauvée...">
|
||||
<input type="submit" value="Rechercher">
|
||||
</form>
|
||||
<br>
|
||||
<div>
|
||||
<button>Page au hasard</button>
|
||||
</div>
|
||||
</center>
|
||||
</body>
|
Loading…
Reference in New Issue
Block a user