{% extends "touchtechnology/admin/workbook/edit.html" %} {% load i18n common admin_workbook %} {% block lede %} {% if object.pk %}
{{ object.season }}{% if object.draft %} · {% trans "Draft: not on the public site" %}{% endif %}
{% endif %} {% endblock %} {% block head-actions %} {% if object.pk %} {% icon "chart-bar" %}{% trans "Leaders" %} {% if division_setup %}{% include "touchtechnology/admin/workbook/_checklist_show.html" %}{% endif %} {% endif %} {% endblock %} {% block form-fieldset %} {% fields_in form "title upstream_title_reset short_title points_formula forfeit_for_score forfeit_against_score games_per_day draft" as basics %} {% include "touchtechnology/admin/workbook/_fieldgroup.html" with fields=basics first=True %} {% fields_besides form "title upstream_title_reset short_title points_formula forfeit_for_score forfeit_against_score games_per_day draft" as rest %} {% trans "More settings" as title %}{% trans "Public notes, colour, bonus points and the web address." as hint %} {% include "touchtechnology/admin/workbook/_fieldgroup.html" with fields=rest title=title hint=hint folded=True %} {% endblock %} {% block layout-class %}{% if object.pk %} wb-layout-aside{% endif %}{% endblock %} {% block aside %} {% if object.pk %} {% endif %} {% endblock %} {% block tab-links %} {{ block.super }} {% if object.pk %} {% trans "Ladder" as ladder %} {% include "touchtechnology/admin/workbook/_tab.html" with name="ladder" label=ladder only %} {% endif %} {% endblock %} {% block tab-panes %} {{ block.super }} {% if object.pk %}| # | {% trans "Team" %} | {% trans "P" %} | {% trans "W" %} | {% trans "D" %} | {% trans "L" %} | {% trans "B" %} | {% trans "For" %} | {% trans "Agst" %} | {% trans "Diff" %} | {% trans "Pts" %} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ forloop.counter }} | {{ row.team.title }} | {{ row.played }} | {{ row.win }} | {{ row.draw }} | {{ row.loss }} | {{ row.bye }} | {{ row.score_for }} | {{ row.score_against }} | {{ row.difference|floatformat:"0" }} | {{ row.points|floatformat:"-2" }} |
{% trans "The ladder appears here once results are in." %}
{% endfor %}