{% extends "management/base.html" %} {% load i18n lucide ui %} {% block heading %}{% trans "Teams" %}{% endblock heading %} {% block actions %} {% if is_club_admin %} {% lucide "plus" size=16 %} {% trans "New team" %} {% endif %} {% endblock actions %} {% block panel %}
{% for team in teams %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Short name" %} {% trans "Players" %} {% trans "Staff" %}
{{ team.name }} {{ team.short_name }} {{ team.player_count }} {{ team.staff_count }} {% if is_club_admin %}
{% lucide "pencil" size=14 %} {% trans "Edit" %}
{% endif %}
{% trans "No teams yet." %}
{% include "management/_pagination.html" %} {% if is_club_admin %} {% trans "Delete team" as delete_team_title %} {% trans "Delete" as delete_label %} {% for team in teams %} {% url 'management:team_delete' team.pk as team_delete_url %} {% blocktrans with name=team.name asvar delete_team_body %}Delete “{{ name }}”? This also removes its roster and staff assignments. This cannot be undone.{% endblocktrans %} {% include "controlpanel/_confirm_modal.html" with modal_id=team.pk|dom_id:"team_delete_modal" title=delete_team_title body=delete_team_body action_url=team_delete_url submit_label=delete_label %} {% endfor %} {% endif %} {% endblock panel %}