cmsmanage/membershipworks/templates/membershipworks/event_year_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

46 lines
1.4 KiB
HTML

{% extends "base.dj.html" %}
{% load render_table from django_tables2 %}
{% block title %}Event Report {{ year|date:"Y" }}{% endblock %}
{% block admin_link %}
{% url 'admin:membershipworks_eventext_changelist' %}?start__year={{ year|date:"Y" }}
{% endblock %}
{% block breadcrumbs %}
<li class="breadcrumb-item">
<a href="{% url 'membershipworks:event-index-report' %}">MW Event Reports</a>
</li>
<li class="breadcrumb-item active" aria-current="page">{{ year|date:"Y" }}</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_year %}
<li class="page-item">
<a class="page-link"
href="{% url 'membershipworks:event-year-report' previous_year|date:"Y" %}">
<i class="bi bi-arrow-left"></i>
{{ previous_year|date:"Y" }}
</a>
</li>
{% endif %}
<li class="page-item active">
<a class="page-link" href="#">{{ year|date:"Y" }}</a>
</li>
{% if next_year %}
<li class="page-item">
<a class="page-link"
href="{% url 'membershipworks:event-year-report' next_year|date:"Y" %}">
{{ next_year|date:"Y" }}
<i class="bi bi-arrow-right"></i>
</a>
</li>
{% endif %}
</ul>
</nav>
{% endblock %}