refactor dir, added integration test for feature

This commit is contained in:
2025-07-11 09:17:07 +02:00
parent 297468e4ad
commit 57a5dfb8d8
10 changed files with 88 additions and 32 deletions

View File

@@ -3,17 +3,36 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Board of clubs and points || GUDLFT</title>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
table.center {
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<h2>Current points</h2>
<ul>
{% for club in clubs %}
<li><strong>club : </strong> {{club['name']}} </br>
<strong>Points : </strong>{{club['points']}}</br>
</br>
</li>
{% endfor %}
</ul>
<h2>Board of clubs</h2>
<table class="center">
<caption>
Points per club
</caption>
<thead>
<th scope="col">Club</th>
<th scope="col">Points</th>
</thead>
<tbody>
{% for club in clubs %}
<tr>
<td id="{{club['name']}}">{{club['name']}}</td>
<td id="points">{{club['points']}}</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ url_for('index') }}"> Back </a>
</body>
</html>