{% extends "reports/base.html" %} {% load pagination_tags %} {% load i18n %} {% block content %} {% if active %}

{% trans "Active Memberships Report" %}

{% if days = 0 %} {% trans "Lists all memberships that are still active." %} {% else %} {% if days = 1826 %} {% trans "Currently showing members who joined in the last 5 years." %} {% else %} {% blocktrans with days=days %} Currently showing members who joined in the last {{ days }} days. {% endblocktrans %} {% endif %} {% endif %}
{% else %}

{% trans "Expired Memberships Report" %}

{% if days = 0 %} {% trans "Lists all memberships that have expired. Grace periods are not included." %} {% else %} {% if days = 1826 %} {% trans "Currently showing members who expired in the last 5 years." %} {% else %} {% blocktrans with days=days %} Currently showing members who expired in the last {{ days }} days. {% endblocktrans %} {% endif %} {% endif %}
{% endif %} {{ mems|length }} {% trans "Members listed" %} {% autopaginate mems 50 %} {% if active %}

Download CSV File

{% else %}

Download CSV File

{% endif %}
{% if active %} {% else %} {% endif %} {% for mem in mems %} {% endfor %}
{% if is_ascending_username %} {% trans "Username" %} {% else %} {% trans "Username" %} {% endif %} {% if is_ascending_full_name %} {% trans "Fullname" %} {% else %} {% trans "Fullname" %} {% endif %} {% if is_ascending_email %} {% trans "Email" %} {% else %} {% trans "Email" %} {% endif %} {% if is_ascending_type %} {% trans "Type" %} {% else %} {% trans "Type" %} {% endif %} {% if is_ascending_subscription %} {% trans "Join" %} {% else %} {% trans "Join" %} {% endif %} {% if is_ascending_expiration %} {% trans "Expiration" %} {% else %} {% trans "Expiration" %} {% endif %} {% if is_ascending_invoice %} {% trans "Invoice" %} {% else %} {% trans "Invoice" %} {% endif %} {% if is_ascending_username %} {% trans "Username" %} {% else %} {% trans "Username" %} {% endif %} {% if is_ascending_full_name %} {% trans "Fullname" %} {% else %} {% trans "Fullname" %} {% endif %} {% if is_ascending_email %} {% trans "Email" %} {% else %} {% trans "Email" %} {% endif %} {% if is_ascending_type %} {% trans "Type" %} {% else %} {% trans "Type" %} {% endif %} {% if is_ascending_subscription %} {% trans "Join" %} {% else %} {% trans "Join" %} {% endif %} {% if is_ascending_expiration %} {% trans "Expiration" %} {% else %} {% trans "Expiration" %} {% endif %} {% if is_ascending_invoice %} {% trans "Invoice" %} {% else %} {% trans "Invoice" %} {% endif %}
{{ forloop.counter }} {{ mem.user.username }} {{ mem.user.get_full_name }} {{ mem.user.email }} {{ mem.membership_type }} {{ mem.join_dt|date:"N j, Y" }} {{ mem.expire_dt|date:"N j, Y" }} {% if mem.get_invoice %} {{ mem.get_invoice.pk }} {% endif %}
{% paginate %} {% endblock content %}