From 078273eb7db5a481a4131d44a943f3c9e34b6b88 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Thu, 30 Jan 2020 13:33:35 -0500 Subject: Adds Template Overrides Changes the structure of the template directories to allow a new project to define their own set of override templates that inherit from a common base. I have slightly modified landing.html here as an example. In comming changes we will try to move all the "laas" specific content into the laas directory Change-Id: I46151be182de901f870debb247b305ea34ae77ba Signed-off-by: Parker Berberian --- .../base/resource/steps/define_hardware.html | 17 +++++ src/templates/base/resource/steps/host_info.html | 34 +++++++++ src/templates/base/resource/steps/meta_info.html | 14 ++++ .../base/resource/steps/pod_definition.html | 81 ++++++++++++++++++++++ 4 files changed, 146 insertions(+) create mode 100644 src/templates/base/resource/steps/define_hardware.html create mode 100644 src/templates/base/resource/steps/host_info.html create mode 100644 src/templates/base/resource/steps/meta_info.html create mode 100644 src/templates/base/resource/steps/pod_definition.html (limited to 'src/templates/base/resource/steps') diff --git a/src/templates/base/resource/steps/define_hardware.html b/src/templates/base/resource/steps/define_hardware.html new file mode 100644 index 0000000..573b996 --- /dev/null +++ b/src/templates/base/resource/steps/define_hardware.html @@ -0,0 +1,17 @@ +{% extends "workflow/viewport-element.html" %} +{% load staticfiles %} + +{% load bootstrap4 %} + +{% block content %} +

Note that not all labs host every kind of machine. +As you make your selections, labs and hosts that are not compatible +with your current configuration will become unavailable.

+

NOTE: Only PTL's are able to create multi-node PODs. See + here + for more details

+
+ {% csrf_token %} + {{form.filter_field|default:"

No Form

"}} +
+{% endblock content %} diff --git a/src/templates/base/resource/steps/host_info.html b/src/templates/base/resource/steps/host_info.html new file mode 100644 index 0000000..3230d8f --- /dev/null +++ b/src/templates/base/resource/steps/host_info.html @@ -0,0 +1,34 @@ +{% extends "workflow/viewport-element.html" %} +{% load staticfiles %} + +{% load bootstrap4 %} + +{% block content %} + +{% if error %} +

{{error}}

+{% else %} + + +
+ {% csrf_token %} + + + + + + + + + {% for form in formset %} + + {% for field in form %} + + {% endfor %} + + {% endfor %} +
TypeName
{{field}}
+ {{formset.management_form}} +
+{% endif %} +{% endblock content %} diff --git a/src/templates/base/resource/steps/meta_info.html b/src/templates/base/resource/steps/meta_info.html new file mode 100644 index 0000000..6fef065 --- /dev/null +++ b/src/templates/base/resource/steps/meta_info.html @@ -0,0 +1,14 @@ +{% extends "workflow/viewport-element.html" %} +{% load staticfiles %} + +{% load bootstrap4 %} + +{% block content %} + +
+ {% csrf_token %} + + {% bootstrap_form form %} +
+
+{% endblock content %} diff --git a/src/templates/base/resource/steps/pod_definition.html b/src/templates/base/resource/steps/pod_definition.html new file mode 100644 index 0000000..a6810de --- /dev/null +++ b/src/templates/base/resource/steps/pod_definition.html @@ -0,0 +1,81 @@ +{% extends "workflow/viewport-element.html" %} +{% block extrahead %} + +Pod Definition Prototype + + + +{% endblock extrahead %} + + +{% block content %} +
+
+
+
+
+
+
Hold right click to drag
+
+ +
+
+ +
+ +
+ +
    +
+ +
+
+
+
+
+ {% csrf_token %} + +
+ +{% endblock content %} +{% block onleave %} +network_step.submitForm(); +{% endblock %} -- cgit 1.2.3-korg