{% load i18n %} {% comment %} Rendered by WeasyPrint -- modeled directly on the club's existing paper referee payment form ("Leeg Document RefereesCompetitie25-26.pdf"): a 3-line header (club name/address), match details, referee names, a payment sentence, a fee+km breakdown per referee, and blank signature lines. Header uses club.official_name (legal_name if set, else name); the payment sentence uses the plain club name -- the original document does the same, using a longer legal form up top and a shorter one in the body text. {% endcomment %} {% trans "Referee form" %}
{{ club.official_name }}
{% if home_location %}
{{ home_location.address }}
{{ home_location.zip_code }} {{ home_location.city }}
{% endif %}
{% trans "Regarding: Game" %} {% for team in event.teams.all %}{{ team.short_name }}{% if not forloop.last %}, {% endif %}{% endfor %} {% if event.opponent %}{% trans "vs" %} {{ event.opponent }}{% endif %} {% if event.external_game_id %}({% trans "ID" %}: {{ event.external_game_id }}){% endif %}
{% trans "Date" %} {{ event.start|date:"j F Y" }}
{% trans "Time" %} {{ event.start|date:"H:i" }}
{% trans "Referee names" %} {% for referee in referees %}{{ referee.display_name }}{% if not forloop.last %}, {% endif %}{% empty %}—{% endfor %}

{% blocktrans with name=club.name %}{{ name }} pays the fee to the referee(s) for officiating the game mentioned above.{% endblocktrans %}

{% trans "Referees and fee, plus any kilometers" %}
{% for referee in referees %}
{{ referee.display_name }} — {% blocktrans with fee=referee.fee %}fee: €{{ fee }}{% endblocktrans %} {% if referee.km %} {% blocktrans with km=referee.km rate=referee.km_rate total=referee.km_total %}+ {{ km }} km × €{{ rate }}/km = €{{ total }}{% endblocktrans %} {% endif %} — {% blocktrans with total=referee.total_payable %}total: €{{ total }}{% endblocktrans %}
{% empty %}
{% endfor %}
{% trans "Referee signature" %}
{% trans "Collected by team manager" %}: