cmsmanage/membershipworks/templates/membershipworks/event_month_report.dj.html
Adam Goldsmith fc5a911c76
All checks were successful
Ruff / ruff (push) Successful in 20s
membershipworks: Add admin links to event reports
2024-01-30 14:28:09 -05:00

49 lines
1.7 KiB
HTML

{% extends "base.dj.html" %}
{% load render_table from django_tables2 %}
{% block title %}Event Report {{ month|date:"N Y" }}{% endblock %}
{% block admin_link %}
{% url 'admin:membershipworks_eventext_changelist' %}?start__year={{ month|date:"Y" }}&start__month={{ month|date:"m" }}
{% endblock %}
{% block breadcrumbs %}
<li class="breadcrumb-item">
<a href="{% url 'membershipworks:event-index-report' %}">MW Event Reports</a>
</li>
<li class="breadcrumb-item">
<a href="{% url 'membershipworks:event-year-report' month|date:"Y" %}">{{ month|date:"Y" }}</a>
</li>
<li class="breadcrumb-item active" aria-current="page">{{ month|date:"F" }}</li>
{% endblock %}
{% block content %}
{% include "cmsmanage/components/download_table.dj.html" %}
{% render_table table %}
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
{% if previous_month %}
<li class="page-item">
<a class="page-link"
href="{% url 'membershipworks:event-month-report' previous_month|date:"Y" previous_month|date:"m" %}">
<i class="bi bi-arrow-left"></i>
{{ previous_month|date:"F Y" }}
</a>
</li>
{% endif %}
<li class="page-item active">
<a class="page-link" href="#">{{ month|date:"F Y" }}</a>
</li>
{% if next_month %}
<li class="page-item">
<a class="page-link"
href="{% url 'membershipworks:event-month-report' next_month|date:"Y" next_month|date:"m" %}">
{{ next_month|date:"F Y" }}
<i class="bi bi-arrow-right"></i>
</a>
</li>
{% endif %}
</ul>
</nav>
{% endblock %}