{% extends "touchtechnology/admin/workbook/edit.html" %} {% load i18n common admin_workbook %} {% block lede %} {% if object.pk %}

{{ object.competition }}{% if object.start_date %} · {% blocktrans with date=object.start_date|date:"j F Y" %}starts {{ date }}{% endblocktrans %}{% endif %}{% if object.complete %} · {% trans "Complete" %}{% endif %}

{% endif %} {% endblock %} {% block head-actions %} {% if object.pk %} {% for step in setup.steps %}{% if step.key == "results" and not step.done and step.url|slice:":1" == "/" and "#" not in step.url %} {% icon "list-checks" %}{% trans "Enter results" %} {% endif %}{% endfor %} {% icon "printer" %}{% trans "Season report" %} {% if object.upstream_enabled and object.upstream_backend %} {% icon "refresh-cw" %}{% blocktrans with name=object.upstream_backend.name %}Sync with {{ name }}{% endblocktrans %} {% endif %} {% endif %} {% endblock %} {% block form-fieldset %} {% fields_in form "title short_title start_date timezone mode enabled complete" as basics %} {% include "touchtechnology/admin/workbook/_fieldgroup.html" with fields=basics first=True %} {% fields_in form "copy hashtag statistics mvp_results_public enable_experimental_views" as public %} {% trans "On the public site" as title %}{% trans "What spectators see about this season." as hint %} {% include "touchtechnology/admin/workbook/_fieldgroup.html" with fields=public title=title hint=hint %} {% fields_in form "live_stream live_stream_privacy live_stream_project_id live_stream_client_id live_stream_client_secret live_stream_thumbnail_image" as stream %} {% trans "Live streaming" as title %}{% trans "Only needed if matches are streamed." as hint %} {% include "touchtechnology/admin/workbook/_fieldgroup.html" with fields=stream title=title hint=hint folded=True %} {% fields_besides form "title short_title start_date timezone mode enabled complete copy hashtag statistics mvp_results_public enable_experimental_views live_stream live_stream_privacy live_stream_project_id live_stream_client_id live_stream_client_secret live_stream_thumbnail_image" as rest %} {% trans "Advanced" as title %}{% trans "The web address, and copying the draw from another site." 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 "Schedule" as schedule %} {% include "touchtechnology/admin/workbook/_tab.html" with name="schedule" label=schedule count=match_days|length only %} {% endif %} {% endblock %} {% block tab-panes %} {{ block.super }} {% if object.pk %}

{% trans "Schedule" %}

{% for day in match_days %} {% with ymd=day.date|date:"Ymd" competition_id=object.competition.pk %} {% endwith %} {% empty %} {% endfor %}
{% trans "Match day" %} {% trans "Matches" %} {% trans "Scheduled" %} {% trans "Results" %} {% trans "Actions" %}
{{ day.date|date:"D j M Y" }} {{ day.total }} {% if day.scheduled == day.total %}{% icon "check" %}{% trans "All" %}{% else %}{% blocktrans with done=day.scheduled total=day.total %}{{ done }} of {{ total }}{% endblocktrans %}{% endif %} {% if day.played == day.total %}{% icon "check" %}{% trans "All in" %}{% elif day.past %}{% blocktrans with done=day.played total=day.total %}{{ done }} of {{ total }}{% endblocktrans %}{% else %}{% trans "To come" %}{% endif %}
{% trans "No matches yet. Build a draw for each division and its days appear here." %}
{% endif %} {% endblock %}