{% extends "management/base.html" %} {% load i18n lucide static ui %} {% block heading %}{{ team.name }}{% endblock heading %} {% block subheading %} {{ team.short_name }} · {% lucide "bookmark" size=14 %} {{ team.pk }} {% endblock subheading %} {% block actions %} {% if is_club_admin %} {% lucide "pencil" size=16 %} {% trans "Edit" %} {% endif %} {% endblock actions %} {% block panel %}
{% if not selected_season %}
{% lucide "calendar-x" size=20 %} {% trans "This club has no seasons yet, so there's no roster or staff to show." %}
{% else %} {% if can_manage %} {% if team_photo %} {% trans "Replace photo" as photo_modal_title %} {% else %} {% trans "Upload photo" as photo_modal_title %} {% endif %} {% url 'management:team_photo_set' team.pk selected_season.pk as team_photo_set_url %} {% include "controlpanel/_modal_form.html" with modal_id="team_photo_modal" title=photo_modal_title form=team_photo_form action_url=team_photo_set_url submit_label="Save" submit_icon="save" %} {% if team_photo %} {% trans "Remove team photo?" as remove_photo_body %} {% trans "Remove photo" as remove_photo_title %} {% url 'management:team_photo_delete' team.pk selected_season.pk as team_photo_delete_url %} {% include "controlpanel/_confirm_modal.html" with modal_id="team_photo_delete_modal" title=remove_photo_title body=remove_photo_body action_url=team_photo_delete_url submit_label="Remove" submit_icon="trash-2" %} {% endif %} {% endif %}
{% lucide "user-check" size=16 %} {% trans "Attendance rate" %}
{% if attendance_rate is None %} {% trans "N/A" %} {% else %} {{ attendance_rate }}% {% endif %}
{% if attendance_rate is None %} {% trans "No past events this season" %} {% else %} {% endif %}

{% lucide "trending-up" size=18 %} {% trans "Top attenders" %}

    {% for entry in top_attenders %}
  • {{ entry.member }} {{ entry.rate }}%
  • {% empty %}
  • {% trans "Not enough data yet." %}
  • {% endfor %}

{% lucide "trending-down" size=18 %} {% trans "Needs attention" %}

    {% for entry in bottom_attenders %}
  • {{ entry.member }} {{ entry.rate }}%
  • {% empty %}
  • {% trans "Not enough data yet." %}
  • {% endfor %}

{% lucide "alert-triangle" size=18 %} {% trans "Missed the last 2 practices" %}

    {% for member in missed_practices %}
  • {{ member }}
  • {% empty %}
  • {% trans "No one -- or not enough practice history yet." %}
  • {% endfor %}

{% lucide "user-x" size=18 %} {% trans "No-shows" %}

{% for entry in no_shows %} {% empty %} {% endfor %}
{{ entry.member }} {{ entry.event.title }} {{ entry.event.start|date:"j M" }}
{% trans "None recorded." %}

{% trans "Roster" %}

{% if can_manage %} {% endif %}
{% for membership in roster %} {% empty %} {% endfor %}
{% trans "Member" %} {% trans "Position" %} {% trans "Jersey #" %}
{{ membership.member }} {{ membership.position }} {{ membership.jersey_number|default:"—" }} {% if membership.is_captain %}{% trans "Captain" %}{% endif %} {% if membership.is_alternate_captain %}{% trans "Alternate captain" %}{% endif %} {% if can_manage %}
{% endif %}
{% trans "No one on the roster for this season yet." %}

{% trans "Staff" %}

{% if can_manage %} {% endif %}
{% for assignment in staff %} {% empty %} {% endfor %}
{% trans "Member" %} {% trans "Position" %}
{{ assignment.member }} {{ assignment.position }} {% if can_manage %}
{% endif %}
{% trans "No staff assigned for this season yet." %}

{% trans "Team photo" %}

{% if can_manage %}
{% trans "Upload photo" as upload_photo_label %} {% trans "Replace photo" as replace_photo_label %} {% if team_photo %} {% endif %}
{% endif %}
{% if team_photo %} {{ team }} {% else %}

{% trans "No photo uploaded for this season yet." %}

{% endif %}
{% if can_manage %} {% trans "Add player" as add_player_label %} {% url 'management:team_roster_add' team.pk selected_season.pk as add_player_url %} {% include "controlpanel/_modal_form.html" with modal_id="add_player_modal" title=add_player_label form=roster_form action_url=add_player_url submit_label=add_player_label submit_icon="user-plus" %} {% trans "Assign staff" as add_staff_label %} {% url 'management:team_staff_add' team.pk selected_season.pk as add_staff_url %} {% include "controlpanel/_modal_form.html" with modal_id="add_staff_modal" title=add_staff_label form=staff_form action_url=add_staff_url submit_label=add_staff_label submit_icon="user-plus" %} {% trans "Edit player" as edit_player_label %} {% trans "Save" as save_label %} {% for membership in roster %} {% url 'management:team_roster_update' team.pk membership.pk as edit_player_url %} {% include "controlpanel/_modal_form.html" with modal_id=membership.pk|dom_id:"edit_player_modal" title=edit_player_label form=membership.edit_form action_url=edit_player_url submit_label=save_label submit_icon="save" %} {% blocktrans asvar remove_player_body with member=membership.member %}Remove {{ member }} from the roster?{% endblocktrans %} {% trans "Remove player" as remove_player_title %} {% trans "Remove" as remove_label %} {% url 'management:team_roster_remove' team.pk membership.pk as remove_player_url %} {% include "controlpanel/_confirm_modal.html" with modal_id=membership.pk|dom_id:"remove_player_modal" title=remove_player_title body=remove_player_body action_url=remove_player_url submit_label=remove_label submit_icon="user-minus" %} {% endfor %} {% trans "Edit staff assignment" as edit_staff_label %} {% for assignment in staff %} {% url 'management:team_staff_update' team.pk assignment.pk as edit_staff_url %} {% include "controlpanel/_modal_form.html" with modal_id=assignment.pk|dom_id:"edit_staff_modal" title=edit_staff_label form=assignment.edit_form action_url=edit_staff_url submit_label=save_label submit_icon="save" %} {% blocktrans asvar remove_staff_body with member=assignment.member %}Remove {{ member }} from staff?{% endblocktrans %} {% trans "Remove staff" as remove_staff_title %} {% url 'management:team_staff_remove' team.pk assignment.pk as remove_staff_url %} {% include "controlpanel/_confirm_modal.html" with modal_id=assignment.pk|dom_id:"remove_staff_modal" title=remove_staff_title body=remove_staff_body action_url=remove_staff_url submit_label=remove_label submit_icon="user-minus" %} {% endfor %} {% endif %} {% endif %} {% endblock panel %} {% block extra_body %} {% endblock extra_body %}