{% extends "reports/base.html" %}
{% load reports_tags %}
{% load i18n %}

{% block content %}
<h1>{% trans "Members in Renewal Period" %}</h1>
<div class="mems-wrap stat-table">

{% if members %}
<p>{% trans "These members are in their renewal period based on the renewal period start and end times set in their membership types." %}
    <table>
        <tr>
            <th>{% trans 'Member Number' %}</th>
            <th>{% trans 'Name' %}</th>
            <th>{% trans 'City' %}</th>
            <th>{% trans 'State' %}</th>
            <th>{% trans 'Country' %}</th>
            <th>{% trans 'Membership Type' %}</th>
            <th>{% trans 'Expiration Date' %}</th>
        </tr>
        {% for member in members %}
        <tr class="{% cycle 'even' 'odd' %}">
            <td>{{ member.member_number }}</td>
            <td>{{ member.last_name }}, {{ member.first_name }}</td>
            <td>{{ member.city }}</td>
            <td>{{ member.state }}</td>
            <td>{{ member.country }}</td>
            <td>{{ member.membership_type }}</td>
            <td>{{ member.expire_dt }}</td>
        </tr>
        {% endfor %}
    </table>
{% else %}
    {% trans "No members currently in their renewal period." %}
{% endif %}
</div>
{% endblock content %}
