{% extends "management/base.html" %} {% load i18n lucide ui %} {% block heading %}{% trans "Positions" %}{% endblock heading %} {% block actions %} {% if is_club_admin %} {% lucide "plus" size=16 %} {% trans "New position" %} {% endif %} {% endblock actions %} {% block panel %}
{% for position in positions %} {% empty %} {% endfor %}
{% trans "Ordering" %} {% trans "Name" %} {% trans "Short name" %} {% trans "Staff position" %} {% trans "Management position" %}
{{ position.ordering }} {{ position.name }} {{ position.short_name }} {% if position.staff_position %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %} {% if position.management_position %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %} {% if is_club_admin %}
{% lucide "pencil" size=14 %} {% trans "Edit" %}
{% endif %}
{% trans "No positions yet." %}
{% if is_club_admin %} {% trans "Delete position" as delete_position_title %} {% trans "Delete" as delete_label %} {% for position in positions %} {% url 'management:position_delete' position.pk as position_delete_url %} {% blocktrans with name=position.name asvar delete_position_body %}Delete “{{ name }}”? Positions still assigned on a team roster can't be deleted. This cannot be undone.{% endblocktrans %} {% include "controlpanel/_confirm_modal.html" with modal_id=position.pk|dom_id:"position_delete_modal" title=delete_position_title body=delete_position_body action_url=position_delete_url submit_label=delete_label %} {% endfor %} {% endif %} {% endblock panel %}