parent
3b48d22473
commit
96fe35a742
File diff suppressed because one or more lines are too long
@ -1,40 +1,36 @@ |
||||
{% extends 'tournaments/base.html' %} |
||||
|
||||
{% block head_title %}Matchs du {{ tournament.display_name }}{% endblock %} |
||||
{% block head_title %}Programmation{% endblock %} |
||||
{% block first_title %}{{ tournament.event.display_name }}{% endblock %} |
||||
{% block second_title %}{{ tournament.display_name }}{% endblock %} |
||||
{% block second_title %}Programmation{% endblock %} |
||||
|
||||
{% block content %} |
||||
{% include 'tournaments/navigation_tournament.html' %} |
||||
|
||||
{% if tournament.display_matches %} |
||||
{% include 'tournaments/navigation_tournament.html' %} |
||||
|
||||
{% if tournament.display_matches or tournament.display_group_stages %} |
||||
|
||||
{% regroup match_groups.matches by start_date|date:"l d F Y" as matches_by_date %} |
||||
|
||||
{% for date in matches_by_date %} |
||||
|
||||
{% regroup date.list by start_date|date:"H:i" as matches_by_hour %} |
||||
|
||||
{% for hour_group in matches_by_hour %} |
||||
<h1 class="club padding10 topmargin20">{{ date.grouper }} {{ hour_group.grouper }}</h1> |
||||
|
||||
{% regroup hour_group.list by court_index as matches_by_court %} |
||||
{% if days %} |
||||
<nav class="margin10"> |
||||
{% for day in days %} |
||||
<a href="{% url 'tournament-prog' tournament.id %}?day={{ day|date:'Y-m-d' }}" class="mybox topmargin5 {% if selected_day == day|date:'Y-m-d' %}active{% endif %}"> |
||||
{{ day|date:"l d F"|capfirst }} |
||||
</a> |
||||
{% endfor %} |
||||
</nav> |
||||
|
||||
{% if match_groups %} |
||||
{% for match_group in match_groups %} |
||||
<h1 class="club padding10 topmargin20">{{ match_group.name }}</h1> |
||||
<div class="grid-x"> |
||||
{% for court in matches_by_court|dictsort:"grouper" %} |
||||
{% for match_data in court.list %} |
||||
{% with match=match_data.match %} |
||||
{% include 'tournaments/match_cell.html' %} |
||||
{% endwith %} |
||||
{% endfor %} |
||||
{% for match in match_group.matches %} |
||||
{% include 'tournaments/match_cell.html' %} |
||||
{% endfor %} |
||||
</div> |
||||
{% endfor %} |
||||
{% endfor %} |
||||
|
||||
|
||||
{% else %} |
||||
<p class="padding10 topmargin20">Aucun match planifié pour cette journée.</p> |
||||
{% endif %} |
||||
{% else %} |
||||
<p class="padding10 topmargin20">Aucun match planifié pour ce tournoi.</p> |
||||
{% endif %} |
||||
{% endif %} |
||||
{% endblock %} |
||||
|
||||
Loading…
Reference in new issue