aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/booking/booking_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/booking/booking_detail.html')
-rw-r--r--src/templates/booking/booking_detail.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/templates/booking/booking_detail.html b/src/templates/booking/booking_detail.html
index cb937d3..dd0bf03 100644
--- a/src/templates/booking/booking_detail.html
+++ b/src/templates/booking/booking_detail.html
@@ -27,3 +27,12 @@
<p>
<b>Scenario: </b> {{ booking.scenario }}
</p>
+{% if user.is_authenticated %}
+{% if user.get_username == booking.user.username %}
+<p>
+ <a href="{% url 'booking:edit' booking_id=booking.id resource_id=booking.resource.id %}" class="btn btn btn-success">
+ Edit Booking
+ </a>
+</p>
+{% endif %}
+{% endif %}