{% 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 %}
{% if user_this == request.user %} {% gravatar user_this 128 %} {% else %} {% gravatar user_this 128 %} {% endif %}
{% if profile.display_name %}

{% firstof profile.display_name %}

{% firstof user_this.get_full_name user_this.username %}

{% else %}

{% firstof user_this.get_full_name user_this.username %}

{% endif %} {% if profile.member_number %} {% if profile|allow_edit_by:user %}
{% trans 'Member ID' %}: {{ profile.member_number}}
{% endif %} {% endif %}

{% trans 'Username' %}: {{ profile.user.username }}

{% if profile.company %}

{{ profile.company }}

{% endif %} {% if profile.position_title %}

{{ profile.position_title }}

{% endif %} {% if city_state %}

{{ city_state }}

{% endif %} {% if user_this.skillset and user_this.skillset.is_first_responder %}

{% trans "first responder" %} - {% trans "see skills" %}

{% endif %} {% if request.user == user_this or admin %} {% if content_counts.invoice > 0 %}

{% trans "Invoices" %} ({{ content_counts.invoice }})

{% endif %} {% endif %}

{% 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 '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 %} {% 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}} {% if membership.can_renew %} {% if membership.corporate_membership_id %} {% trans 'Renew' %} {% else %} {% if membership.app %} {% trans 'Renew' %} {% endif %} {% endif %} {% endif %} {% if user.is_superuser and membership.past_renewal %} {% if membership.corporate_membership_id %} {% trans 'Admin Renew' %} {% else %} {% if membership.app %} {% trans 'Admin Renew' %} {% endif %} {% endif %} {% endif %} {% if auto_renew_is_set and membership.auto_renew %} {% with membership.next_auto_renew_date as next_auto_renew_date %} {% if next_auto_renew_date %}
{% trans 'Auto Renews' %} {{ next_auto_renew_date|date:'m/d/Y' }} {% endif %} {% endwith %} {% endif %}
{% 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 '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 %}

{% trans "Upcoming Event Registrations" %}

{% trans "View All 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" %}

{% trans 'more' %} »
{% for contribution in contributions|slice:":5" %}
{% if contribution.object.status and contribution.object.get_absolute_url %} {{ contribution.content_type.name|capfirst }}: {{ contribution.title|truncatewords_html:8|slice:":-4" }} {{ contribution.create_dt|date:"long" }} {% else %} {{ contribution.title }} {{ contribution.create_dt|date:"long" }} {% endif %}
{% endfor %}
{% 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 %}