{% load i18n lucide ui %} {% comment %} Shared by the event detail page and the referee management dashboard -- context: event, referees (EventReferee rows, each with a .fee_form when can_manage_referees), referee_candidates, referees_full, can_manage_referees, and an optional next_url to return to after a POST (defaults to the event detail page when blank). {% endcomment %}
{% trans "This game already has its maximum number of referees." %}
{% else %} {% if referee_candidates %}{% trans "⚠ = also expected at another event around this time -- shown as a warning, not blocked." %}
{% else %}{% trans "No eligible referees for this team yet." %} {% trans "Link a referee level to this team." %}
{% endif %} {% endif %} {% endif %} {% if can_manage_referees %} {% trans "Referee fee" as fee_title %} {% trans "Save" as save_label %} {% with encoded_next=next_url|urlencode %} {% for referee in referees %} {% url 'management:event_referee_fee_update' event.pk referee.pk as fee_action_url %} {% with fee_action_url=fee_action_url|add:"?next="|add:encoded_next %} {% include "controlpanel/_modal_form.html" with modal_id=referee.pk|dom_id:"referee_fee_modal" title=fee_title form=referee.fee_form action_url=fee_action_url submit_label=save_label submit_icon="save" %} {% endwith %} {% endfor %} {% endwith %} {% endif %}