{% extends "touchtechnology/admin/edit.html" %} {% load i18n tz %} {% load common %} {% block tab-links %} {% timezone season.timezone %} {% for form in match_formset.forms %} {% with match=form.instance %} {% ifchanged match.datetime %}
  •  {{ match.datetime }}
  • {% endifchanged %} {% endwith %} {% endfor %} {% if bye_formset.forms %}
  •  {% trans "Byes" %}
  • {% endif %} {% endtimezone %} {% endblock %} {% block tab-panes %} {% timezone season.timezone %}

    {% trans "Results" %}

    {{ match_formset.management_form }} {{ bye_formset.management_form }} {% regroup match_formset.forms by instance.datetime as match_forms %} {% for tab in match_forms %}
    {% for form in tab.list %} {% with match=form.instance %} {% with home=match.get_home_team away=match.get_away_team %}
    {{ match }} {{ form.id }}
    {% if form.home_team_score %} {% field form.home_team_score %} {% endif %}
    {% if form.away_team_score %} {% field form.away_team_score %} {% endif %}
    {% if form.is_forfeit %}
    {% field form.is_forfeit %}
    {% field form.forfeit_winner %}
    {% endif %}
    {% endwith %} {% endwith %} {% endfor %}
    {% endfor %}
    {% blocktrans %}Process byes for {{ date }}{% endblocktrans %}

    {% blocktrans %}Process byes to update the ladder as configured.{% endblocktrans %}

    {% for form in bye_formset.forms %} {% with match=form.instance %} {% with home=match.get_home_team away=match.get_away_team %} {% with team=away|default:home %} {{ form.id }}
    {{ form.bye_processed }}

    {{ match.stage.division.title }}

    {% endwith %} {% endwith %} {% endwith %} {% endfor %}
     {% trans "Cancel" %}
    {% endtimezone %} {% endblock %}