parent
3b48d22473
commit
96fe35a742
File diff suppressed because one or more lines are too long
@ -1,40 +1,36 @@ |
|||||||
{% extends 'tournaments/base.html' %} |
{% 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 first_title %}{{ tournament.event.display_name }}{% endblock %} |
||||||
{% block second_title %}{{ tournament.display_name }}{% endblock %} |
{% block second_title %}Programmation{% endblock %} |
||||||
|
|
||||||
{% block content %} |
{% block content %} |
||||||
|
|
||||||
{% if tournament.display_matches %} |
|
||||||
{% include 'tournaments/navigation_tournament.html' %} |
{% include 'tournaments/navigation_tournament.html' %} |
||||||
|
|
||||||
{% if tournament.display_matches or tournament.display_group_stages %} |
{% if tournament.display_matches %} |
||||||
|
{% if days %} |
||||||
{% regroup match_groups.matches by start_date|date:"l d F Y" as matches_by_date %} |
<nav class="margin10"> |
||||||
|
{% for day in days %} |
||||||
{% for date in matches_by_date %} |
<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 }} |
||||||
{% regroup date.list by start_date|date:"H:i" as matches_by_hour %} |
</a> |
||||||
|
{% endfor %} |
||||||
{% for hour_group in matches_by_hour %} |
</nav> |
||||||
<h1 class="club padding10 topmargin20">{{ date.grouper }} {{ hour_group.grouper }}</h1> |
|
||||||
|
|
||||||
{% regroup hour_group.list by court_index as matches_by_court %} |
|
||||||
|
|
||||||
|
{% if match_groups %} |
||||||
|
{% for match_group in match_groups %} |
||||||
|
<h1 class="club padding10 topmargin20">{{ match_group.name }}</h1> |
||||||
<div class="grid-x"> |
<div class="grid-x"> |
||||||
{% for court in matches_by_court|dictsort:"grouper" %} |
{% for match in match_group.matches %} |
||||||
{% for match_data in court.list %} |
|
||||||
{% with match=match_data.match %} |
|
||||||
{% include 'tournaments/match_cell.html' %} |
{% include 'tournaments/match_cell.html' %} |
||||||
{% endwith %} |
|
||||||
{% endfor %} |
|
||||||
{% endfor %} |
{% endfor %} |
||||||
</div> |
</div> |
||||||
{% endfor %} |
{% 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 %} |
||||||
{% endif %} |
{% endif %} |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
|||||||
Loading…
Reference in new issue