summaryrefslogtreecommitdiffstats
path: root/dashboard/src/templates/booking/booking_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/src/templates/booking/booking_detail.html')
-rw-r--r--dashboard/src/templates/booking/booking_detail.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/dashboard/src/templates/booking/booking_detail.html b/dashboard/src/templates/booking/booking_detail.html
index cb937d3..dd0bf03 100644
--- a/dashboard/src/templates/booking/booking_detail.html
+++ b/dashboard/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 %}