3 Commits

Author SHA1 Message Date
811c635a47 Merge branch 'QA' of github.com:ylxdre/OCR-P11-Testing into feature/issue7
branch created earlier : retrieve base code
2025-07-09 11:54:08 +02:00
db692a068e Merge pull request #8 from ylxdre/bug/issue6
Bug/issue6
2025-07-08 16:58:04 +02:00
2dc85f19e7 added public list of club`s points 2025-06-26 15:11:13 +02:00
3 changed files with 22 additions and 1 deletions

View File

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

View File

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