From 7fec796ae500313ddbbbedf32d4f7581985d41d4 Mon Sep 17 00:00:00 2001 From: Brandon Lo Date: Thu, 27 Jun 2019 15:43:55 -0400 Subject: Replace and change CSS Fix animation bugs Fix layout issues Replace custom CSS to bootstrap classes Remove unused files Change code to use es6 syntax Add dropdown styles Change-Id: Ie2ed31fa2e6763cf30d3b19e4bf9379019cbb0f5 Signed-off-by: Brandon Lo --- src/templates/booking/booking_detail.html | 446 ++++++++++++++---------------- 1 file changed, 202 insertions(+), 244 deletions(-) (limited to 'src/templates/booking/booking_detail.html') diff --git a/src/templates/booking/booking_detail.html b/src/templates/booking/booking_detail.html index 918f5af..99de747 100644 --- a/src/templates/booking/booking_detail.html +++ b/src/templates/booking/booking_detail.html @@ -4,174 +4,164 @@ {% block extrahead %} {{block.super}} - + {% endblock %} {% block content %} - -
-

Overview

+

Overview

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Purpose{{ booking.purpose }}
Project{{ booking.project }}
Start Time{{ booking.start }}
End Time{{ booking.end }}
Pod Definition{{ booking.resource.template }}
Pod Configuration{{ booking.config_bundle }}
Lab Deployed At{{ booking.lab }}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Purpose{{ booking.purpose }}
Project{{ booking.project }}
Start Time{{ booking.start }}
End Time{{ booking.end }}
Pod Definition{{ booking.resource.template }}
Pod Configuration{{ booking.config_bundle }}
Lab Deployed At{{ booking.lab }}
+
-

Pod

+

Pod

-
- - {% for host in booking.resource.hosts.all %} - - - + {% endfor %} + +

{{host.template.resource.name}}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
Hostname:{{host.template.resource.name}}
Profile:{{host.name}}
Role:{{host.config.opnfvRole}}
Image: - {{host.config.image}} -
RAM:{{host.profile.ramprofile.first.amount}}G, - {{host.profile.ramprofile.first.channels}} channels
CPU: - - - - - - - - - - - - - -
Arch:{{host.profile.cpuprofile.first.architecture}}
Cores:{{host.profile.cpuprofile.first.cores}}
Sockets:{{host.profile.cpuprofile.first.cpus}}
-
DISK: - - - - - - - - - - - - - -
Size:{{host.profile.storageprofile.first.size}} GiB
Type:{{host.profile.storageprofile.first.media_type}}
Mount Point:{{host.profile.storageprofile.first.name}}
-
Interfaces: - - - {% for intprof in host.profile.interfaceprofile.all %} - - - {% endfor %} - -
- +
+
+
+ {% for host in booking.resource.hosts.all %} + + + - -

{{host.template.resource.name}}

+ + + + + + + + + + + + + + + + + + + + + + + + - - {% endfor %} -
Hostname:{{host.template.resource.name}}
Profile:{{host.name}}
Role:{{host.config.opnfvRole}}
Image: + {{host.config.image}} +
RAM:{{host.profile.ramprofile.first.amount}}G, + {{host.profile.ramprofile.first.channels}} channels
CPU: + + + + + - - + + - - + +
Arch:{{host.profile.cpuprofile.first.architecture}}
Name:{{intprof.name}}Cores:{{host.profile.cpuprofile.first.cores}}
Speed:{{intprof.speed}}Sockets:{{host.profile.cpuprofile.first.cpus}}
-
-
-
+
DISK: + + + + + + + + + + + + + +
Size:{{host.profile.storageprofile.first.size}} GiB
Type:{{host.profile.storageprofile.first.media_type}}
Mount Point:{{host.profile.storageprofile.first.name}}
+
Interfaces: + + {% for intprof in host.profile.interfaceprofile.all %} + + + + {% endfor %} +
+ + + + + + + + + +
Name:{{intprof.name}}
Speed:{{intprof.speed}}
+
+
+
+
@@ -180,105 +170,72 @@
-

Deployment Progress

-

These are the different tasks that have to be completed before your deployment is ready

+

Deployment Progress

+

These are the different tasks that have to be completed before your deployment is ready

-
- - - - - - - - - {% for task in booking.job.get_tasklist %} - - - - - - - {% endfor %} -
StatusLab ResponseType
- {% if task.status < 100 %} -
- {% elif task.status < 200 %} -
- {% else %} -
- {% endif %} -
- {% if task.status < 100 %} - PENDING - {% elif task.status < 200 %} - IN PROGRESS - {% else %} - DONE - {% endif %} - - {% if task.message %} - {% if task.type_str == "Access Task" and user_id != task.config.user.id %} - Message from Lab:
--secret--
- {% else %} - Message from Lab:
{{ task.message }}
- {% endif %} - {% else %} - No response provided (yet) - {% endif %} -
- {{ task.type_str }} -
+
+
+ + + + + + + + {% for task in booking.job.get_tasklist %} + + + + + + + {% endfor %} +
StatusLab ResponseType
+ {% if task.status < 100 %} +
+ {% elif task.status < 200 %} +
+ {% else %} +
+ {% endif %} +
+ {% if task.status < 100 %} + PENDING + {% elif task.status < 200 %} + IN PROGRESS + {% else %} + DONE + {% endif %} + + {% if task.message %} + {% if task.type_str == "Access Task" and user_id != task.config.user.id %} + Message from Lab:
--secret--
+ {% else %} + Message from Lab:
{{ task.message }}
+ {% endif %} + {% else %} + No response provided (yet) + {% endif %} +
+ {{ task.type_str }} +
+
-

PDF

+

PDF

-
-
-                                {{pdf}}
-                            
+
+
+
+                                    {{pdf}}
+                                
+
@@ -289,10 +246,10 @@