{% extends "profiles/base-wide.html" %} {% load base_tags %} {% load base_filters %} {% load perm_tags %} {% load profile_tags %} {% load profile_filters %} {% load contribution_tags %} {% load membership_tags %} {% load humanize %} {% block title %}{% trans 'Profile' %} {% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content %}
{% for message,link,label in membership_reminders %} {% endfor %}

{% trans 'Contact Information' %}

{% if can_edit or not profile.hide_email %} {% endif %} {% if can_edit or not profile.hide_phone %} {% endif %} {% if can_edit or not profile.hide_address %} {% endif %}
{% trans 'Username' %} {{ profile.user.username }}
{% trans 'Email' %} {{ user_this.email }}
{% trans 'Phone' %} {% firstof profile.phone|phonenumber profile.phone2|phonenumber %}
{% trans 'Website' %} {{ profile.url }}
{% trans 'Address' %} {{ profile.address }} {{ city_state_zip }}
{% if request.user.profile.is_superuser %}

{% trans 'Admin Notes' %}

{% if profile.admin_notes %} {{ profile.admin_notes }} {% else %} {% trans 'No admin notes' %}. {% endif %}

{% endif %} {% if user_this.educations.all %}

{% trans 'Education History' %}

{% for education in user_this.educations.all %} {% endfor %}
{% trans 'School' %}: {{ education.school }} {% trans 'Major' %}: {{ education.major }}
{% trans 'Degree' %}: {{ education.degree }} {% trans 'Graduation Date' %}: {{ education.graduation_year }}
{% endif %} {% if request.user == user_this or request.user.profile.is_superuser %}

{% trans 'Groups' %} {% if request.user == user_this or admin %} S {% endif %}

{% if group_memberships %}
{% for gm in group_memberships %} {% endfor %}
{% if user.profile.is_superuser %} {% firstof gm.role 'Member' %} {% else %} {% firstof gm.role 'Member' %} {% endif %} of {% firstof gm.group.label gm.group.name %}
{% else %}

{% trans 'Not in any groups.' %}

{% endif %}
{% if request.user == user_this or request.user.profile.is_superuser %}
{% if request.user == user_this or admin %} {% if content_counts.invoice > 0 %} {% trans "My Invoices" %} ({{ content_counts.invoice }})

{% endif %} {% endif %}
{% if MODULE_MEMBERSHIPS_ENABLED %}

{% trans 'Memberships' %} {% if membership_apps %} + {% else %} + {% endif %}

{% if multiple_apps %} {% endif %} {% if memberships %} {% if can_auto_renew %} {% endif %}
{% for membership in memberships %} {% endfor %}
{% if request.user.profile.is_superuser or request.user == membership.user %} {{ membership.membership_type }} {% else %} {{ membership.member_number }} {{ membership.membership_type }} {% endif %} {{ membership.join_dt|date:"M j, Y" }} {% if not membership.is_pending %} - {% firstof membership.expire_dt|date:"M j, Y" "Forever" %} + (grace period: {{ membership.membership_type.expiration_grace_period }} days) {% endif %} {{ membership.get_status|capfirst}} {% with membership.get_invoice as invoice %} {% if invoice %} {% trans 'Balance' %} {{ invoice.balance|format_currency }} {% endif %} {% endwith %}
{% else %}

{% trans 'Not a member.' %}

{% endif %} {% endif %} {% endif %}

{% trans "Upcoming Event Registrations" %}

{% if registrations %}
{% for reg in registrations %} {% endfor %}
{% trans "Registration" %} #{{ reg.registration.pk }} {{ reg.reg8n_status }} {{ reg.registration.event }} {{ reg.registration.event.start_dt }} - {{ reg.registration.event.end_dt }}
{% else %} {% trans "No upcoming event registrations." %} {% endif %}
{% endif %} {% latest_contributions user_this as contributions %} {% if contributions %}

{% trans "Contributions" %}

{% else %} {% if user.profile.is_superuser %}
{% firstof request.user.first_name request.user.username %}, {% trans 'this person has not made any contributions yet.' %}
{% endif %} {% endif %} {% profile_meta %}
{% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}