forked from OpenClassrooms-Student-Center/Python_Testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and test bug OpenClassrooms-Student-Center#5
- Loading branch information
Showing
3 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,31 @@ | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Summary | GUDLFT Registration</title> | ||
</head> | ||
<body> | ||
<h2>Welcome, {{club['email']}} </h2><a href="{{url_for('logout')}}">Logout</a> | ||
|
||
{% with messages = get_flashed_messages()%} | ||
{% if messages %} | ||
<ul> | ||
{% for message in messages %} | ||
<li>{{message}}</li> | ||
<body> | ||
<h2>Welcome, {{club['email']}} </h2><a href="{{url_for('logout')}}">Logout</a> {% with messages = get_flashed_messages()%} {% if messages %} | ||
<ul> | ||
{% for message in messages %} | ||
<li>{{message}}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif%} | ||
Points available: {{club['points']}} | ||
</ul> | ||
{% endif%} Points available: {{club['points']}} | ||
<h3>Competitions:</h3> | ||
<ul> | ||
{% for comp in competitions%} | ||
<li> | ||
{{comp['name']}}<br /> | ||
Date: {{comp['date']}}</br> | ||
Number of Places: {{comp['numberOfPlaces']}} | ||
{%if comp['numberOfPlaces']|int >0%} | ||
<a href="{{ url_for('book',competition=comp['name'],club=club['name']) }}">Book Places</a> | ||
{%endif%} | ||
{{comp['name']}}<br /> Date: {{comp['date']}}</br> | ||
Number of Places: {{comp['numberOfPlaces']}} {%if comp['numberOfPlaces']|int >0%} | ||
<a href="{{ url_for('book',competition=comp['name'],club=club['name']) }}">Book Places</a> {%endif%} | ||
</li> | ||
<hr /> | ||
{% endfor %} | ||
<hr /> {% endfor %} | ||
</ul> | ||
{%endwith%} | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters