From 30dde45dbf5b47b7d4c18ed87779b2b2f2fec214 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Thu, 17 Jan 2019 12:51:04 -0500 Subject: OverHaul the Snapshot Workflow Makes the Snapshot workflow much prettier and more functional. Change-Id: Icdd66f64e6d336ad49ed3cf638a301d0ca92fda9 Signed-off-by: Parker Berberian --- src/templates/notifier/email_fulfilled.txt | 6 +- src/templates/snapshot_workflow/steps/meta.html | 19 ++++--- .../snapshot_workflow/steps/select_host.html | 65 ++++++++++++++++------ 3 files changed, 64 insertions(+), 26 deletions(-) (limited to 'src/templates') diff --git a/src/templates/notifier/email_fulfilled.txt b/src/templates/notifier/email_fulfilled.txt index d473961..65593db 100644 --- a/src/templates/notifier/email_fulfilled.txt +++ b/src/templates/notifier/email_fulfilled.txt @@ -3,9 +3,9 @@ The booking you requested of the OPNFV Lab as a Service has finished deploying and is ready for you to use. The lab that fulfilled your booking request has sent you the following messages: - {% for message in messages %} - {% message.title %} - {% message.content %} + {% for email_message in messages %} + {{ email_message.title }} + {{ email_message.content }} -------------------- {% endfor %} diff --git a/src/templates/snapshot_workflow/steps/meta.html b/src/templates/snapshot_workflow/steps/meta.html index 2e767cc..cc49691 100644 --- a/src/templates/snapshot_workflow/steps/meta.html +++ b/src/templates/snapshot_workflow/steps/meta.html @@ -4,16 +4,21 @@ {% load bootstrap3 %} {% block content %} - - - {% bootstrap_form_errors form type='non_fields' %} -
-{% csrf_token %} -{{form}} -
+
+
+ {% csrf_token %} +
+ {% bootstrap_field form.name %} + {% bootstrap_field form.description %} +
+
+
{% endblock content %} {% block onleave %} diff --git a/src/templates/snapshot_workflow/steps/select_host.html b/src/templates/snapshot_workflow/steps/select_host.html index 16dd5d4..27a9238 100644 --- a/src/templates/snapshot_workflow/steps/select_host.html +++ b/src/templates/snapshot_workflow/steps/select_host.html @@ -5,43 +5,73 @@ {% block content %} - - {% bootstrap_form_errors form type='non_fields' %}
{% csrf_token %}
-
+