membershipworks: Add breadcrumbs for "my events" and event details page

This commit is contained in:
Adam Goldsmith 2024-05-05 22:59:09 -04:00
parent 04ca92b5fe
commit 25fbe3d352
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{% if perms.membershipworks.view_eventext %}
<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' event.start|date:"Y" %}">{{ event.start|date:"Y" }}</a>
</li>
<li class="breadcrumb-item">
<a href="{% url 'membershipworks:event-month-report' event.start|date:"Y" event.start|date:"m" %}">{{ event.start|date:"F" }}</a>
</li>
{% else %}
<li class="breadcrumb-item">
<a href="{% url 'membershipworks:user-events' %}">My Events</a>
</li>
{% endif %}

View File

@ -7,6 +7,10 @@
{% block admin_link %}
{% url 'admin:membershipworks_eventext_change' event.pk %}
{% endblock %}
{% block breadcrumbs %}
{% include "./components/event_breadcrumbs.dj.html" %}
<li class="breadcrumb-item active" aria-current="page">{{ event.details.ttl|nh3 }}</li>
{% endblock %}
{% block content %}
<div class="container">
{% include "membershipworks/event_invoice.dj.html" %}

View File

@ -3,6 +3,7 @@
{% load render_table from django_tables2 %}
{% block title %}My Events{% endblock %}
{% block breadcrumbs %}<li class="breadcrumb-item active" aria-current="page">My Events</li>{% endblock %}
{% block content %}
{% include "cmsmanage/components/download_table.dj.html" %}