SOITA/templates/tournament_classification.html

34 lines
1.0 KiB
HTML
Raw Normal View History

2022-06-05 10:27:49 +02:00
{% extends "base.html" %}
{% load social_share %}
{% block title %}Tournament classification{% endblock %}
{% block content %}
<form method="post">
<label for="name">Turniej: </label>
<select name="name" id="name">
{% for tournament_name in tournament_names %}
<option value="{{tournament_name}}">{{tournament_name}}</option>
{% endfor %}
</select>
<div class="testContent">
<input type="submit" value="Wyszukaj">
</div>
</form>
{% if final_tournaments%}
{% for tournament in final_tournaments%}
2022-06-08 23:24:17 +02:00
<div class="mainTournamentRankingContainer">
<strong>Miejsce:</strong> {{forloop.counter}} <br>
<strong>Nazwa turnieju:</strong> {{tournament.tournament__name}} <br>
<strong>Gracz:</strong> {{tournament.user__email}} <br>
<strong>Wynik gracza:</strong> {{tournament.score}} <br>
<strong>Data wykonania testu:</strong> {{tournament.date|date:"d M Y"}}
</div>
<br>
2022-06-05 10:27:49 +02:00
{% endfor %}
{% endif %}
{% endblock %}