added public list of club`s points

This commit is contained in:
yann 2025-06-26 15:08:51 +02:00
parent 1009e35d17
commit 2dc85f19e7
3 changed files with 22 additions and 1 deletions

View File

@ -80,7 +80,9 @@ def purchasePlaces():
competitions=competitions, now=now)
# TODO: Add route for points display
@app.route('/points')
def displayPoints():
return render_template('points.html', clubs=clubs)
@app.route('/logout')
def logout():

View File

@ -22,5 +22,6 @@
<input type="email" name="email" id=""/>
<button type="submit">Enter</button>
</form>
<a href="{{ url_for('displayPoints') }}">Board of points</a>
</body>
</html>

18
templates/points.html Normal file
View File

@ -0,0 +1,18 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Board of clubs and points || GUDLFT</title>
</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>
{% endfor %}
</ul>
<a href="{{ url_for('index') }}"> Back </a>
</body>
</html>