Finalisation de la page des résultats de recherche.

Màj styles CSS.
This commit is contained in:
Antoine Waehren 2021-12-03 03:49:24 +01:00
parent df6933959d
commit dfbf62d651
4 changed files with 42 additions and 32 deletions

View File

@ -45,6 +45,10 @@ table, tr, td {
font-size: 30px; font-size: 30px;
} }
#searchresults {
width: 75%;
}
.searchbar { .searchbar {
float: right; float: right;
padding-right: 20px; padding-right: 20px;

View File

@ -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>

View File

@ -1,9 +1,29 @@
<ul> <!DOCTYPE html>
<head>
{% for result in liste %} <meta charset="utf-8">
<title>{{nom}} {{prenom}} - Sauveuteurs du dunkerquois</title>
<li><a href="{{result.lien}}">{{result.nom}}</a></li> <link href="../static/style.css" rel="stylesheet" type="text/css" />
<link rel="icon" type="image/png" href="../static/favicon.png" />
{% endfor %} </head>
<body>
</ul> <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 %}
<tr>
<td><a href="{{result.lien}}">{{result.nom}}</a></td>
</tr>
{% endfor %}
</table>
</center>
</body>
</html>

View File

@ -0,0 +1,9 @@
<ul>
{% for result in liste %}
<li><a href="{{result.lien}}">{{result.nom}}</a></li>
{% endfor %}
</ul>