{% extends "touchtechnology/admin/explorer/form_page.html" %} {% load i18n tz common admin admin_explorer %} {% block page_title %}{% trans "Results" %}{% endblock %} {% block page_kind %}{{ date|date:"l j F Y" }}{% if division %} – {{ division.title }}{% endif %}{% endblock %} {% block page_icon %}{% icon "results" %}{% endblock %} {% block cancel-url %}{{ season.urls.edit }}#schedule-tab{% endblock %} {% block page_nav %}{% include "tournamentcontrol/competition/admin/explorer/_day_nav.html" with day_url="admin:fixja:match-results" day_page="results" %}{% endblock %} {% block form-body %} {% timezone season.timezone %} {{ match_formset.management_form }} {{ bye_formset.management_form }} {% if match_formset.non_form_errors %} {% endif %} {% regroup match_formset.forms by instance.datetime as slots %} {% for slot in slots %}

{% icon "clock" %}{% if slot.grouper %}{{ slot.grouper|time }}{% else %}{% trans "No time set" %}{% endif %} {{ slot.list|length }}

{% for form in slot.list %} {% with match=form.instance %} {% with home=match.get_home_team away=match.get_away_team %} {% if form.errors %} {% endif %} {% endwith %} {% endwith %} {% endfor %}
{% trans "Ground" %} {% trans "Division" %} {% trans "Home" %} {% trans "Score" %} {% trans "Away" %} {% trans "Forfeit" %}
{{ form.id }}{{ match.play_at.title|default:"–" }} {{ match.stage.division.short_title|default:match.stage.division.title }} {{ match.stage.division.short_title|default:match.stage.division.title }}{% if match.play_at %}, {{ match.play_at.title }}{% endif %} {% if form.home_team_score %}{{ form.home_team_score|widget:"score-input" }}{% endif %} {% if form.away_team_score %}{{ form.away_team_score|widget:"score-input" }}{% endif %} {% if form.is_forfeit %} {% trans "Forfeit" %} {{ form.is_forfeit|widget }} {{ form.forfeit_winner|widget }} {% endif %}
    {% for name, errors in form.errors.items %}{% for error in errors %}
  • {{ error }}
  • {% endfor %}{% endfor %}
{% empty %}

{% trans "No match on this day is waiting for a result." %}

{% endfor %} {% if bye_formset.forms %}

{% icon "check" %}{% trans "Byes" %}

{% trans "A processed bye counts on the ladder as the division says." %}

{% endif %} {% endtimezone %} {% endblock %}