{% extends "management/base.html" %} {% load lucide ui i18n %} {% block heading %}{{ member.get_full_name }}{% endblock heading %} {% block subheading %}{{ member.contact_email }}{% endblock subheading %} {% block actions %} {% if is_club_admin %} {% lucide "pencil" size=16 %} {% trans "Edit" %} {% endif %} {% endblock actions %} {% block panel %}

{% lucide "user" size=18 %} {% trans "Personal information" %}

{% trans "Date of birth" %}
{{ member.date_of_birth|default:"-" }}
{% trans "Phone" %}
{{ member.phone.as_international|default:"-" }}
{% trans "Emergency phone" %}
{{ member.emergency_phone.as_international|default:"-" }}
{% for guardian in guardians %}
{% trans "Parent phone" %} — {{ guardian.get_full_name }}
{{ guardian.phone.as_international|default:"-" }}
{% trans "Parent emergency phone" %} — {{ guardian.get_full_name }}
{{ guardian.emergency_phone.as_international|default:"-" }}
{% endfor %}
{% if member.phone %} {% lucide "phone" size=14 %} {% trans "Call" %} {% endif %} {% if member.emergency_phone %} {% lucide "shield-alert" size=14 %} {% trans "Emergency call" %} {% endif %}
{% if guardians %}
{% lucide "users" size=12 %} {% trans "Parent/guardian contact" %}
{% for guardian in guardians %} {% if guardian.phone or guardian.emergency_phone %} {% endif %} {% endfor %} {% endif %}
{% comment %} A Member has no club of its own -- ClubMembership is the only thing that actually ties this person to *this* club, so it gets its own panel: the current season's standing, plus every season they've been part of. {% endcomment %}

{% lucide "id-card" size=18 %} {% trans "Club membership" %}

{% if current_membership %}
{% trans "License" %}
{{ current_membership.license|default:"-" }}
{% trans "Status" %}
{{ current_membership.get_status_display }}
{% trans "Fee status" %}
{{ current_membership.get_fee_status_display }}
{% else %}

{% trans "Not rostered for the current season." %}

{% endif %} {% if membership_history %}

{% trans "Season history" %}

{% for membership in membership_history %} {% endfor %}
{% trans "Season" %} {% trans "Status" %} {% trans "Fee status" %} {% trans "License" %}
{{ membership.season.start_date|date:"Y" }} - {{ membership.season.end_date|date:"Y" }} {{ membership.get_status_display }} {{ membership.get_fee_status_display }} {{ membership.license|default:"-" }}
{% endif %}
{% trans "Add parent" as add_parent_label %} {% trans "Add child" as add_child_label %} {% trans "If this email has no account yet, one is created and they set a password via the reset link." as add_parent_blurb %} {% blocktrans with short_name=member.get_short_name asvar remove_from_family_label %}Remove {{ short_name }} from family{% endblocktrans %} {% trans "Remove from family" as remove_from_family_title %} {% trans "Remove" as remove_label %} {% for family_group in family_groups %}

{% lucide "users" size=18 %} {{ family_group.family }}

{% if is_club_admin %}
{% endif %}
{% include "management/_family_members_table.html" with group=family_group next_url=request.path %}
{% if is_club_admin %} {% url 'management:family_add_parent' family_group.family.pk as add_parent_url %} {% url 'management:family_add_child' family_group.family.pk as add_child_url %} {% url 'management:member_detach_family' member.pk family_group.family.pk as detach_family_url %} {% blocktrans with full_name=member.get_full_name family_name=family_group.family asvar detach_family_body %}Remove {{ full_name }} from {{ family_name }}? They become a standalone member -- nothing else about them changes.{% endblocktrans %} {% include "controlpanel/_modal_form.html" with modal_id=family_group.family.pk|dom_id:"add_parent_modal" title=add_parent_label form=add_parent_form action_url=add_parent_url submit_label=add_parent_label submit_icon="user-plus" blurb=add_parent_blurb %} {% include "controlpanel/_modal_form.html" with modal_id=family_group.family.pk|dom_id:"add_child_modal" title=add_child_label form=add_child_form action_url=add_child_url submit_label=add_child_label submit_icon="baby" %} {% include "controlpanel/_confirm_modal.html" with modal_id=family_group.family.pk|dom_id:"detach_family_modal" title=remove_from_family_title body=detach_family_body action_url=detach_family_url submit_label=remove_label submit_icon="user-x" %} {% endif %} {% endfor %} {% if is_club_admin %}

{% lucide "users" size=18 %} {% trans "Family" %}

{% if not family_groups %}

{% trans "Not part of a family." %}

{% endif %}
{% url 'management:member_attach_family' member.pk as attach_family_url %} {% trans "Add to family" as add_to_family_title %} {% trans "Add" as add_label %} {% trans "Pick an existing family, or leave it blank to start a new one." as attach_family_blurb %} {% include "controlpanel/_modal_form.html" with modal_id="attach_family_modal" title=add_to_family_title form=attach_to_family_form action_url=attach_family_url submit_label=add_label submit_icon="user-plus" blurb=attach_family_blurb %} {% endif %} {% endblock panel %}