{% extends "reports/base.html" %} {% load bootstrap_pagination_tags %} {% block content %} {% if active %} {% 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 %} {% 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 %}

{% trans 'Download CSV File' %}

{% else %}

{% trans 'Download CSV File' %}

{% endif %}
{% if active %} {% else %} {% endif %} {% for mem in mems %} {% endfor %}
{% trans "Username" %}    {% trans "Fullname" %}    {% trans "Email" %}    {% trans "Type" %}    {% trans "Join" %}    {% trans "Expiration" %}    {% trans "Invoice" %}    {% trans "Username" %}    {% trans "Fullname" %}    {% trans "Email" %}    {% trans "Type" %}    {% trans "Join" %}    {% trans "Expiration" %}    {% trans "Invoice" %}   
{{ 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 %}