{% extends "management/base.html" %} {% load i18n lucide static ui %} {% block heading %}{{ team.name }}{% endblock heading %} {% block subheading %}{{ team.short_name }}{% 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 %}

{% 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." %}
{% 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 %}