Finalisation de la page des résultats de recherche.
Màj styles CSS.
This commit is contained in:
parent
df6933959d
commit
dfbf62d651
@ -45,6 +45,10 @@ table, tr, td {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
#searchresults {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.searchbar {
|
||||
float: right;
|
||||
padding-right: 20px;
|
||||
|
@ -1,23 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{nom}} {{prenom}} - Sauveuteurs du dunkerquois</title>
|
||||
<link href="../static/style.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="icon" type="image/png" href="../static/favicon.png" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="banner">
|
||||
<img src="../static/icon.png" width="150" height="75">
|
||||
<span id="logo_title">Sauveuteurs du dunkerquois</span>
|
||||
</header>
|
||||
<br>
|
||||
<form class="searchbar" method=get>
|
||||
<input type="text" placeholder="Saisissez votre recherche..." size=20>
|
||||
<input type="submit" value="Rechercher">
|
||||
</form>
|
||||
<script> {% for key, value in dres %}
|
||||
{{<a href=}value{>}key{</a>}}
|
||||
{% endfor %}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,9 +1,29 @@
|
||||
<ul>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{nom}} {{prenom}} - Sauveuteurs du dunkerquois</title>
|
||||
<link href="../static/style.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="icon" type="image/png" href="../static/favicon.png" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="banner">
|
||||
<img src="../static/icon.png" width="150" height="75">
|
||||
<span id="logo_title">Sauveuteurs du dunkerquois</span>
|
||||
</header>
|
||||
<br>
|
||||
<form class="searchbar" method=get>
|
||||
<input type="text" placeholder="Saisissez votre recherche..." size=20>
|
||||
<input type="submit" value="Rechercher">
|
||||
</form>
|
||||
<h1>Résultats de la recherche :</h1>
|
||||
<center>
|
||||
<table id="searchresults">
|
||||
{% for result in liste %}
|
||||
|
||||
<li><a href="{{result.lien}}">{{result.nom}}</a></li>
|
||||
|
||||
<tr>
|
||||
<td><a href="{{result.lien}}">{{result.nom}}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
</table>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
|
9
templates/searchresults.html.old
Normal file
9
templates/searchresults.html.old
Normal file
@ -0,0 +1,9 @@
|
||||
<ul>
|
||||
|
||||
{% for result in liste %}
|
||||
|
||||
<li><a href="{{result.lien}}">{{result.nom}}</a></li>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
Loading…
Reference in New Issue
Block a user