From c32479489db670904579a580a918f3513581fda9 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Fri, 5 Jan 2018 16:07:13 -0500 Subject: Implement Booking Modification Interface Jira: PHAROS-330 Users can change start date if it has not already occurred, and can change end date, purpose, and both installer and scenario. Standard checks apply similar to when initially creating a booking. Change-Id: Ibae7fe91a58bd6e0741db065265c05c3823bdc27 Signed-off-by: Sawyer Bergeron --- .../src/templates/booking/booking_calendar.html | 22 ++++++++++++++++++++++ .../src/templates/booking/booking_detail.html | 9 +++++++++ 2 files changed, 31 insertions(+) (limited to 'dashboard/src/templates') diff --git a/dashboard/src/templates/booking/booking_calendar.html b/dashboard/src/templates/booking/booking_calendar.html index 16f0a4a..52193d5 100644 --- a/dashboard/src/templates/booking/booking_calendar.html +++ b/dashboard/src/templates/booking/booking_calendar.html @@ -56,6 +56,28 @@ {% endbuttons %} +
+ {% bootstrap_form_errors form type='non_fields' %} +
+ {% csrf_token %} + +
+ {% bootstrap_field form.start addon_after='' %} +
+
+ {% bootstrap_field form.end addon_after='' %} +
+ {% bootstrap_field form.purpose %} + {% bootstrap_field form.installer %} + {% bootstrap_field form.scenario %} + {% bootstrap_field form.reset %} + {% buttons %} + + {% endbuttons %} +
+
{% else %}

Please 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 @@

Scenario: {{ booking.scenario }}

+{% if user.is_authenticated %} +{% if user.get_username == booking.user.username %} +

+ + Edit Booking + +

+{% endif %} +{% endif %} -- cgit 1.2.3-korg