{% extends "touchtechnology/admin/explorer/edit.html" %} {% load i18n admin admin_explorer %} {% block object-actions %} {% if object.pk %} {% icon "chart" %}{% trans "Leaders" %} {% icon "download" %}{% trans "Export" %} {% endif %} {{ block.super }} {% endblock %} {% block tab-links %} {{ block.super }} {% if object.pk and division_setup %} {% icon "check" %}{% trans "Set-up" %} {% endif %} {% if object.pk %} {% icon "ladder" %}{% trans "Ladder" %} {% endif %} {% endblock %} {% block tab-panes %} {{ block.super }} {% if object.pk and division_setup %}
{% include "touchtechnology/admin/explorer/_setup.html" with setup=division_setup %}
{% endif %} {% if object.pk %}
{% for stage in object.stages.all %} {% with rows=stage.ladder_summary.all %} {% if rows %} {% regroup rows by stage_group as pools %} {% for pool in pools %}

{% icon "stage" %}{{ stage.title }}{% if pool.grouper %} {{ pool.grouper.title }}{% endif %}

{% for row in pool.list %} {% endfor %}
# {% trans "Team" %} P W D L B For Ag +/− Pts
{{ forloop.counter }} {{ row.team }} {{ row.played }} {{ row.win }} {{ row.draw }} {{ row.loss }} {{ row.bye }} {{ row.score_for }} {{ row.score_against }} {{ row.difference|floatformat:"0" }} {{ row.points|floatformat:"-2" }}
{% endfor %} {% endif %} {% endwith %} {% empty %}

{% trans "The ladder fills in as results are entered." %}

{% endfor %}
{% endif %} {% endblock %}