From dd7e16215d3bf6bb21a6d4325171d9d556c5da2d Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Mon, 26 Feb 2018 17:52:25 -0500 Subject: Limit User Booking Length and Extensions Jira: PHAROS-363 Bookings can now only be 3 weeks upon creation with a maximum of 2 1 week extensions. Change-Id: I677770de3f62f188d23e60be6d71b42b25bf007e Signed-off-by: Sawyer Bergeron --- dashboard/src/templates/booking/booking_calendar.html | 15 ++++++++++++++- dashboard/src/templates/booking/booking_detail.html | 6 +++++- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'dashboard/src/templates') diff --git a/dashboard/src/templates/booking/booking_calendar.html b/dashboard/src/templates/booking/booking_calendar.html index 81efbe5..b60db3c 100644 --- a/dashboard/src/templates/booking/booking_calendar.html +++ b/dashboard/src/templates/booking/booking_calendar.html @@ -64,13 +64,26 @@ {% 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 %} diff --git a/dashboard/src/templates/booking/booking_detail.html b/dashboard/src/templates/booking/booking_detail.html index c88cd84..4628a62 100644 --- a/dashboard/src/templates/booking/booking_detail.html +++ b/dashboard/src/templates/booking/booking_detail.html @@ -44,6 +44,10 @@

Scenario: {{ booking.scenario }}

+

+ Extensions Remaining: {{ booking.ext_count }} +

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

@@ -67,4 +71,4 @@

{% endif %} -{% endif %} \ No newline at end of file +{% endif %} -- cgit 1.2.3-korg