Fix event button on invoice detail page

Was very confusing at first when I got a random event from several years ago!
This commit is contained in:
2021-09-11 10:40:53 +01:00
committed by GitHub
parent 44f9509eda
commit 85ca7b0880

View File

@@ -5,7 +5,7 @@
<div class="row py-4"> <div class="row py-4">
<div class="col-sm-12 text-right px-0"> <div class="col-sm-12 text-right px-0">
<div class="btn-group"> <div class="btn-group">
<a href="{% url 'event_detail' object.pk %}" class="btn btn-primary">Open Event Page <span class="fas fa-eye"></span></a> <a href="{% url 'event_detail' object.event.pk %}" class="btn btn-primary">Open Event Page <span class="fas fa-eye"></span></a>
<a href="{% url 'invoice_delete' object.pk %}" class="btn btn-danger" title="Delete Invoice"> <a href="{% url 'invoice_delete' object.pk %}" class="btn btn-danger" title="Delete Invoice">
<span class="fas fa-times"></span> <span <span class="fas fa-times"></span> <span
class="d-none d-sm-inline">Delete</span> class="d-none d-sm-inline">Delete</span>