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 --- src/templates/booking/booking_detail.html | 303 ------------------------------ 1 file changed, 303 deletions(-) delete mode 100644 src/templates/booking/booking_detail.html (limited to 'src/templates/booking/booking_detail.html') diff --git a/src/templates/booking/booking_detail.html b/src/templates/booking/booking_detail.html deleted file mode 100644 index fea2bb6..0000000 --- a/src/templates/booking/booking_detail.html +++ /dev/null @@ -1,303 +0,0 @@ -{% extends "base.html" %} -{% load staticfiles %} -{% load bootstrap4 %} - -{% block extrahead %} - {{block.super}} - -{% endblock %} - -{% block content %} -
-
-
-
-

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 }}
-
-
-
-
-

Pod

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

{{host.template.resource.name}}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Hostname:{{host.template.resource.name}}
Machine:{{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 %} -
- - - - - - - - - -
Name:{{intprof.name}}
Speed:{{intprof.speed}}
-
-
-
- {% endfor %} -
-
-
-
-
-
-
-

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 }} -
-
-
-
-
-

PDF

- -
-
-
-
-{{pdf}}
-                    
-
-
-
-
-
- - - - - -{% endblock content %} -- cgit 1.2.3-korg