From 4ecf03b0a8517a8323dd888fc74e371aab41ba67 Mon Sep 17 00:00:00 2001 From: Justin Choquette Date: Fri, 18 Aug 2023 15:50:38 -0400 Subject: minor status changes Change-Id: Ia29c2879ddea67bdb6b30c4e871d8cb97be38d41 Signed-off-by: Justin Choquette --- src/templates/base/booking/booking_detail.html | 146 ++++++++++++++++++++----- src/templates/base/dashboard/lab_detail.html | 6 +- src/templates/base/dashboard/landing.html | 10 +- src/templates/base/workflow/book_a_pod.html | 18 ++- src/templates/base/workflow/design_a_pod.html | 28 +++-- 5 files changed, 156 insertions(+), 52 deletions(-) (limited to 'src/templates/base') diff --git a/src/templates/base/booking/booking_detail.html b/src/templates/base/booking/booking_detail.html index 33b0486..bcf554b 100644 --- a/src/templates/base/booking/booking_detail.html +++ b/src/templates/base/booking/booking_detail.html @@ -53,6 +53,14 @@ code { Lab Deployed At {{ booking.lab }} + + IPMI Username + {{ status.config.ipmi_username }} + + + IPMI Password + {{ status.config.ipmi_password }} + @@ -61,35 +69,80 @@ code {

Deployment Progress

-

Your resources are being prepared. If this is taking a really long time, please contact us here!

- +

Your resources are being prepared. If this is taking a really long time, please contact + us here!

- + + + - {% for host in statuses %} + {% with status.instances as instances %} + + {% for id, inst in instances.items %} - + - {% endfor %} + {% endwith %}
ResourceNameAssigned Host Status
- {% if 'Success' in host.status %} -
- {% elif 'Fail' in host.status %} -
+ + {% if inst.logs|length > 0 %} + {% with inst.logs|last as lastelem %} + {% if 'Success' in lastelem.status %} +
+ {% elif 'Fail' in lastelem.status %} +
{% else %} -
+
+ {% endif %} + {% endwith %} {% endif %}
- {{ host.hostname }} + + + {{inst.host_alias}} + + + {{inst.assigned_host}} - {{ host.status }} + + + {% if inst.logs|length > 0 %} + {% with inst.logs|last as lastelem %} + + {{lastelem.status}} + + + {% endwith %} + + {% endif %} +

+

+
Additional Logs
+
+ + {% for log in inst.logs %} + + + + + + {% endfor %} +
+ {{log.status}} + + {{log.time}} +
+
+
+

@@ -116,30 +169,67 @@ code { -{% endblock content %} +{% endblock content %} \ No newline at end of file diff --git a/src/templates/base/dashboard/lab_detail.html b/src/templates/base/dashboard/lab_detail.html index cd096f6..1c15496 100644 --- a/src/templates/base/dashboard/lab_detail.html +++ b/src/templates/base/dashboard/lab_detail.html @@ -57,7 +57,9 @@ -
+ + +
diff --git a/src/templates/base/dashboard/landing.html b/src/templates/base/dashboard/landing.html index 960ad39..7f97e4f 100644 --- a/src/templates/base/dashboard/landing.html +++ b/src/templates/base/dashboard/landing.html @@ -49,13 +49,15 @@ {% endif %} {% else %} {% block btnGrp %} -

To get started, book a server below:

- - Book a Pod - +

Select 'Design a Pod' to create a custom resource group.

+

Select 'Book a Pod' to reserve a custom pod or a single resource.

Design a Pod + + Book a Pod + + {% endblock btnGrp %} {% endif %}
diff --git a/src/templates/base/workflow/book_a_pod.html b/src/templates/base/workflow/book_a_pod.html index 8a0fb47..5c1a253 100644 --- a/src/templates/base/workflow/book_a_pod.html +++ b/src/templates/base/workflow/book_a_pod.html @@ -10,7 +10,7 @@
@@ -25,21 +25,14 @@

Book a Pod

Select Host Or Template*

-
- -
- -
-
    -
-
- +

Select the resource bundle that you would like to reserve. Then use the navigation arrows or scroll to advance the workflow. Configure your own resource here.

+
-

Global Cloud Init Override

+

Add a custom cloud init configuration to apply to all hosts in your booking (optional).

@@ -47,6 +40,7 @@

Booking Details*

+

Enter the project and purpose for your booking, as well as the duration (up to 21 days).

@@ -67,6 +61,7 @@

Add Collaborators:

+

Give SSH and booking overview access to other users. Collaborators must mark their profiles as public and have a linked IPA account.

{% bootstrap_field form.users label="Collaborators" %} @@ -76,6 +71,7 @@

Booking Summary

+

Review your booking information and click 'Book' to reserve your resources.

    diff --git a/src/templates/base/workflow/design_a_pod.html b/src/templates/base/workflow/design_a_pod.html index 32bd332..c23e5a8 100644 --- a/src/templates/base/workflow/design_a_pod.html +++ b/src/templates/base/workflow/design_a_pod.html @@ -14,7 +14,7 @@
    @@ -30,7 +30,8 @@
    -

    Design a Pod

    +

    Design a Pod

    +

    To get started, select a lab. Then use the navigation arrows or scroll to advance through the workflow.

    Select a Lab*

    @@ -39,6 +40,7 @@

    Add Resources*

    +

    Add up to 8 configurable resources to your pod, then use the navigation arrows to proceed to the next step.

    @@ -52,6 +54,7 @@

    Add Networks*

    +

    Define networks to use in your pod. A network may be set as public or private.

    @@ -65,6 +68,7 @@

    Configure Connections*

    +

    Configure the connections for each host in your pod to your defined networks.

    @@ -72,6 +76,7 @@

    Pod Details*

    +

    Add a pod name and description to refer to later.

    @@ -102,7 +107,8 @@
    -

    Pod Summary:

    +

    Pod Summary

    +

    Confirm the specifications below, and select 'create' to save this pod. Otherwise, navigate upwards and modify it as needed.

    @@ -143,8 +149,10 @@
-

Image

+

Image*

-

Hostname

+

Hostname*

Cloud Init

@@ -184,6 +192,12 @@
+
    +
  • Select an interface and a frame type to add a connection to a network.
  • +
  • An interface may send tagged or untagged frames on a single network, but not both.
  • +
  • Each interface may only be untagged on one network.
  • +
  • Reselect a connection to remove it.
  • +