From e3842fee2abb084d020acf7b868af745b8a66c18 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Thu, 17 Jan 2019 11:30:35 -0500 Subject: Add Quick-Booking Workflow Users can now quickly provision a single-host pod without having to configure unecessary networking. This is intended to be analogous to the workflow used during LaaS 1.0, and to speed up the process of creating a booking for users who do not need more than a single host (for virtual deployments) Change-Id: Ia19cea9a42bbb1df57aad05af8f8ea821395664d Signed-off-by: Sawyer Bergeron --- dashboard/src/templates/booking/quick_deploy.html | 206 +++++++++++++++++++++ dashboard/src/templates/dashboard/landing.html | 1 + .../dashboard/multiple_select_filter_widget.html | 73 ++++---- .../dashboard/searchable_select_multiple.html | 7 +- 4 files changed, 247 insertions(+), 40 deletions(-) create mode 100644 dashboard/src/templates/booking/quick_deploy.html (limited to 'dashboard/src/templates') diff --git a/dashboard/src/templates/booking/quick_deploy.html b/dashboard/src/templates/booking/quick_deploy.html new file mode 100644 index 0000000..3837315 --- /dev/null +++ b/dashboard/src/templates/booking/quick_deploy.html @@ -0,0 +1,206 @@ +{% extends "base.html" %} +{% load staticfiles %} +{% load bootstrap3 %} +{% block content %} + +{% bootstrap_form_errors form type='non_fields' %} +
+{% csrf_token %} +
+
+

Please select a host type you wish to book. Only available types are shown.

+{% bootstrap_field form.filter_field %} +
+
+ {% bootstrap_field form.purpose %} + {% bootstrap_field form.project %} + {% bootstrap_field form.length %} +

Days:

0 + +
+
+ + {{ form.users }} +
+
+ {% bootstrap_field form.hostname %} + {% bootstrap_field form.image %} + {% bootstrap_field form.installer %} + {% bootstrap_field form.scenario %} +
+
+ + +
+ +{% endblock %} diff --git a/dashboard/src/templates/dashboard/landing.html b/dashboard/src/templates/dashboard/landing.html index 40e0146..6bbb25b 100644 --- a/dashboard/src/templates/dashboard/landing.html +++ b/dashboard/src/templates/dashboard/landing.html @@ -39,6 +39,7 @@ {% if not request.user.is_anonymous %}
+Create a Quick Booking diff --git a/dashboard/src/templates/dashboard/multiple_select_filter_widget.html b/dashboard/src/templates/dashboard/multiple_select_filter_widget.html index 31b8f33..9e33896 100644 --- a/dashboard/src/templates/dashboard/multiple_select_filter_widget.html +++ b/dashboard/src/templates/dashboard/multiple_select_filter_widget.html @@ -97,7 +97,7 @@