34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
{% 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%}
|
|
<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>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|