{% extends "tournamentcontrol/competition/admin/workbook/base.html" %} {% load i18n admin_workbook %} {% block page_title %}{% blocktrans with provider=backend.name %}Synchronise with {{ provider }}{% endblocktrans %}{% endblock %} {% block content %} {% blocktrans asvar title with provider=backend.name %}Synchronise with {{ provider }}{% endblocktrans %} {% include "tournamentcontrol/competition/admin/workbook/_page_head.html" with eyebrow=season.title %}
{% csrf_token %}

{% blocktrans with provider=backend.name %}Fetch the current competitions, teams, fixtures and results from {{ provider }} and update this season to match. {{ provider }} is authoritative: divisions, teams and matches that it manages will be created, updated or removed to reflect what it publishes.{% endblocktrans %}

{% trans "Source" %}: {{ season.upstream_url }}

{% if renamed_divisions or renamed_teams %}
{% icon "triangle-alert" %}

{% blocktrans with provider=backend.name %}{{ provider }} has renamed the following records since their names were last reconciled. Their local names are kept by the synchronisation; edit each one to accept the new name or to acknowledge the change and keep yours.{% endblocktrans %}

    {% for division in renamed_divisions %}
  • {{ division.title }} — {% blocktrans with was=division.upstream_title_synced now=division.upstream_title provider=backend.name %}was “{{ was }}”, now “{{ now }}” on {{ provider }}{% endblocktrans %}
  • {% endfor %} {% for team in renamed_teams %}
  • {{ team.title }} ({{ team.division.title }}) — {% blocktrans with was=team.upstream_title_synced now=team.upstream_title provider=backend.name %}was “{{ was }}”, now “{{ now }}” on {{ provider }}{% endblocktrans %}
  • {% endfor %}
{% endif %}
{% trans "Cancel" %}
{% endblock %}