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

{% trans "Active Memberships Report" %}

{% trans "Lists all memberships that are still active." %} {% else %}

{% trans "Expired Memberships Report" %}

{% trans "Lists all memberships that have expired. Grace periods are not included." %} {% 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_app %} {% trans "Application" %} {% else %} {% trans "Application" %} {% endif %} {% if is_ascending_type %} {% trans "Type" %} {% else %} {% trans "Type" %} {% endif %} {% if is_ascending_subscription %} {% trans "Subscription" %} {% else %} {% trans "Subscription" %} {% 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_app %} {% trans "Application" %} {% else %} {% trans "Application" %} {% endif %} {% if is_ascending_type %} {% trans "Type" %} {% else %} {% trans "Type" %} {% endif %} {% if is_ascending_subscription %} {% trans "Subscription" %} {% else %} {% trans "Subscription" %} {% 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.ma }} {{ mem.membership_type }} {{ mem.subscribe_dt }} {{ mem.expire_dt }} {% if mem.get_entry.invoice.pk %} {{ mem.get_entry.invoice.pk }} {% else %} - {% endif %}
{% paginate %} {% endblock content %}