From 25275685e9a735e51fae8b1a936ba5733f6fb770 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Wed, 10 Oct 2018 16:06:47 -0400 Subject: Lab as a Service 2.0 See changes here: https://wiki.opnfv.org/display/INF/Pharos+Laas Change-Id: I59ada5f98e70a28d7f8c14eab3239597e236ca26 Signed-off-by: Sawyer Bergeron Signed-off-by: Parker Berberian --- dashboard/src/templates/account/booking_list.html | 52 ++++++++++++++++++++++ .../src/templates/account/configuration_list.html | 28 ++++++++++++ dashboard/src/templates/account/details.html | 9 ++++ dashboard/src/templates/account/image_list.html | 27 +++++++++++ dashboard/src/templates/account/resource_list.html | 28 ++++++++++++ dashboard/src/templates/account/user_list.html | 2 +- 6 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 dashboard/src/templates/account/booking_list.html create mode 100644 dashboard/src/templates/account/configuration_list.html create mode 100644 dashboard/src/templates/account/details.html create mode 100644 dashboard/src/templates/account/image_list.html create mode 100644 dashboard/src/templates/account/resource_list.html (limited to 'dashboard/src/templates/account') diff --git a/dashboard/src/templates/account/booking_list.html b/dashboard/src/templates/account/booking_list.html new file mode 100644 index 0000000..ef4df3a --- /dev/null +++ b/dashboard/src/templates/account/booking_list.html @@ -0,0 +1,52 @@ +{% extends "base.html" %} +{% block content %} + +

Bookings I Own

+ {% for booking in bookings %} +
+
    +
  • id: {{booking.id}}
  • +
  • lab: {{booking.resource.template.lab.lab_user.username}}
  • +
  • resource: {{booking.resource.template.name}}
  • +
  • start: {{booking.start}}
  • +
  • end: {{booking.end}}
  • +
  • purpose: {{booking.purpose}}
  • +
+
+ + +
+
+ {% endfor %} +

Bookings I Collaborate On

+ {% for booking in collab_bookings %} +
+
    +
  • id: {{booking.id}}
  • +
  • lab: {{booking.lab}}
  • +
  • resource: {{booking.resource_name}}
  • +
  • start: {{booking.start}}
  • +
  • end: {{booking.end}}
  • +
  • purpose: {{booking.purpose}}
  • +
+
+ + +
+
+ {% endfor %} +{% endblock %} diff --git a/dashboard/src/templates/account/configuration_list.html b/dashboard/src/templates/account/configuration_list.html new file mode 100644 index 0000000..ee61e97 --- /dev/null +++ b/dashboard/src/templates/account/configuration_list.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block content %} + + {% for config in configurations %} +
+
    +
  • id: {{config.id}}
  • +
  • name: {{config.name}}
  • +
  • description: {{config.description}}
  • +
+ +
+ {% endfor %} +{% endblock %} diff --git a/dashboard/src/templates/account/details.html b/dashboard/src/templates/account/details.html new file mode 100644 index 0000000..5641064 --- /dev/null +++ b/dashboard/src/templates/account/details.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% load staticfiles %} +{% block content %} +

Account Details

+ + + + +{% endblock content %} diff --git a/dashboard/src/templates/account/image_list.html b/dashboard/src/templates/account/image_list.html new file mode 100644 index 0000000..fb436df --- /dev/null +++ b/dashboard/src/templates/account/image_list.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% block content %} +

Images I Own

+ {% for image in images %} +
+
    +
  • id: {{image.id}}
  • +
  • lab: {{image.from_lab.name}}
  • +
  • name: {{image.name}}
  • +
  • description: {{image.description}}
  • +
  • host profile: {{image.host_type.name}}
  • +
+
+ {% endfor %} +

Public Images

+ {% for image in public_images %} +
+
    +
  • id: {{image.id}}
  • +
  • lab: {{image.from_lab.name}}
  • +
  • name: {{image.name}}
  • +
  • description: {{image.description}}
  • +
  • host profile: {{image.host_type.name}}
  • +
+
+ {% endfor %} +{% endblock %} diff --git a/dashboard/src/templates/account/resource_list.html b/dashboard/src/templates/account/resource_list.html new file mode 100644 index 0000000..482a000 --- /dev/null +++ b/dashboard/src/templates/account/resource_list.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block content %} + + {% for resource in resources %} +
+
    +
  • id: {{resource.id}}
  • +
  • name: {{resource.name}}
  • +
  • description: {{resource.description}}
  • +
+ +
+ {% endfor %} +{% endblock %} diff --git a/dashboard/src/templates/account/user_list.html b/dashboard/src/templates/account/user_list.html index 58ddda6..e564524 100644 --- a/dashboard/src/templates/account/user_list.html +++ b/dashboard/src/templates/account/user_list.html @@ -47,7 +47,7 @@