{% extends "mobile/coach/base.html" %} {% load i18n lucide %} {% comment %} Squad screen's per-player detail sheet -- see CoachRosterMemberView's own docstring. Call buttons/guardian section mirror management/templates/ management/member_detail.html's "Personal information" card (same tel: pattern, same guardians-only-if-non-empty gate), just laid out for a phone instead of a desktop two-column grid. {% endcomment %} {% block header_extra %}
{% include "mobile/_avatar.html" with person=member size_class="h-12 w-12" text_class="text-base" %}
{{ member.get_full_name }} {% if membership.is_captain %}C{% endif %} {% if membership.is_alternate_captain %}A{% endif %}
{{ membership.position|default:_("No position set") }} {% if membership.jersey_number %}· #{{ membership.jersey_number }}{% endif %}
{% endblock header_extra %} {% block content %}
{% trans "Contact" %}
{% if member.phone %} {% lucide "phone" size=16 %} {% trans "Call" %} {% endif %} {% if member.emergency_phone %} {% lucide "shield-alert" size=16 %} {% trans "Emergency call" %} {% endif %} {% for guardian in guardians %} {% if guardian.phone %} {% lucide "phone" size=16 %} {% blocktrans with name=guardian.get_full_name %}Call {{ name }}{% endblocktrans %} {% endif %} {% if guardian.emergency_phone %} {% lucide "shield-alert" size=16 %} {% blocktrans with name=guardian.get_full_name %}Emergency: {{ name }}{% endblocktrans %} {% endif %} {% endfor %} {% if not member.phone and not member.emergency_phone and not guardians %}

{% trans "No phone numbers on file." %}

{% endif %}
{% trans "Attendance this season" %}
{{ attendance_counts.present }}
{% trans "Present" %}
{{ attendance_counts.absent }}
{% trans "Absent" %}
{{ attendance_counts.no_reply }}
{% trans "No reply" %}
{{ attendance_counts.no_shows }}
{% trans "No-shows" %}
{% if form %}
{% csrf_token %}
{% trans "Roster details" %}
{{ form.position }} {% if form.position.errors %}

{{ form.position.errors.0 }}

{% endif %}
{{ form.jersey_number }} {% if form.jersey_number.errors %}

{{ form.jersey_number.errors.0 }}

{% endif %}
{% trans "Remove this player from the roster? This cannot be undone." as remove_confirm_text %}
{% csrf_token %}
{% endif %} {% endblock content %}