{% extends "touchtechnology/admin/explorer/print.html" %} {% load i18n %} {% block title %}{% trans "Season report" %} – {{ season.title }}{% endblock %} {% block heading %}{% trans "Season report" %}{% endblock %} {% block subheading %}{{ competition.title }}, {{ season.title }}{% endblock %} {% block tools %}{% trans "Back to the season" %}{% endblock %} {% block content %}

{% trans "Club officials" %}

{% regroup season.officials.all by club as officials %}
{% for group in officials %} {% for official in group.list %} {% endfor %} {% empty %} {% endfor %}
{% trans "Club" %}{% trans "Contact" %}{% trans "Roles" %}{% trans "Email" %}{% trans "Phone" %}
{% ifchanged group.grouper %}{{ group.grouper.title }}{% endifchanged %} {{ official.person.get_full_name }} {% for role in official.roles.all %}{{ role.name }}{% if not forloop.last %}, {% endif %}{% endfor %} {{ official.person.email|urlize }} {{ official.person.mobile_phone }}
{% trans "No club has named its officials yet." %}

{% trans "Club reports" %}

{% regroup object_list by club as clubs %} {% for group in clubs %}

{{ group.grouper.title|default:_("No club") }}

{% for team in group.list %} {% for object in team.people.select_related %} {% empty %} {% endfor %} {% endfor %}
{% trans "Division" %}{% trans "Team" %}{% trans "Person" %}{% trans "Born" %} {% trans "Mobile" %}{% trans "Work phone" %}{% trans "Email" %}{% trans "Player" %}{% trans "Roles" %}
{% ifchanged team.division %}{{ team.division.title }}{% endifchanged %} {{ team.title }} {{ object.person.get_full_name }} {{ object.person.date_of_birth|default_if_none:"–" }} {{ object.person.mobile_telephone }} {{ object.person.work_telephone }} {{ object.person.email|urlize }} {% if object.is_player %}{% if object.number %}#{{ object.number }}{% else %}{% trans "TBA" %}{% endif %}{% endif %} {% for role in object.roles.all %}{{ role.name }}{% if not forloop.last %}, {% endif %}{% endfor %}
{{ team.division.title }} {{ team.title }} {% trans "The club has not sent its registrations yet." %}
{% endfor %} {% endblock %}