1 {% extends "base.html" %}
6 <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js?lang=yaml"></script>
11 <div class="col-lg-4">
12 <div class="card mb-3">
13 <div class="card-header d-flex">
15 <button class="btn btn-outline-secondary ml-auto" data-toggle="collapse" data-target="#panel_overview">Expand</button>
17 <div class="collapse show" id="panel_overview">
18 <div class="overflow-auto">
19 <table class="table m-0">
25 <td>Lab Location: </td>
26 <td>{{lab.location}}</td>
30 <td>{{lab.contact_email}}</td>
32 {% if lab.contact_phone %}
35 <td>{{lab.contact_phone}}</td>
40 {% if lab.status < 100 %}
42 <div class="rounded-circle bg-success square-20 d-inline-block"></div>
45 {% elif lab.status < 200 %}
47 <div class="rounded-circle bg-warning square-20 d-inline-block"></div>
52 <div class="rounded-circle bg-danger square-20 d-inline-block"></div>
61 <div class="card my-3">
62 <div class="card-header d-flex">
63 <h4 class="d-inline-block">Host Profiles</h4>
64 <button data-toggle="collapse" data-target="#profile_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
66 <div class="collapse show" id="profile_panel">
67 <div class="overflow-auto">
68 <table class="table m-0">
69 {% for profile in hostprofiles %}
71 <td>{{profile.name}}</td>
72 <td>{{profile.description}}</td>
73 <td><a href="/resource/profiles/{{ profile.id }}" class="btn btn-info">Profile</a></td>
81 <div class="card my-3">
82 <div class="card-header d-flex">
83 <h4 class="d-inline">Networking Capabilities</h4>
84 <button data-toggle="collapse" data-target="#network_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
87 <div class="collapse show" id="network_panel">
88 <table class="table m-0">
90 <td>Block Size: (number of VLANs allowed per deployment)</td><td>{{lab.vlan_manager.block_size}}</td>
93 <td>Overlapping Vlans Allowed (user can pick which VLANs they wish to use): </td>
94 <td>{{lab.vlan_manager.allow_overlapping|yesno:"Yes,No"}}</td>
99 <div class="card my-3">
100 <div class="card-header d-flex">
102 <button data-toggle="collapse" data-target="#image_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
104 <div class="collapse show" id="image_panel">
105 <div class="overflow-auto">
106 <table class="table m-0">
110 <th>For Host Type</th>
113 {% for image in images %}
115 <td>{{image.name}}</td>
116 <td>{{image.owner}}</td>
117 <td>{{image.host_type}}</td>
118 <td>{{image.description}}</td>
127 <div class="col-lg-8">
128 <div class="card mb-3">
129 <div class="card-header d-flex">
131 <button data-toggle="collapse" data-target="#lab_hosts_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
134 <div class="collapse show" id="lab_hosts_panel">
135 <table class="table m-0">
143 {% for host in hosts %}
145 <td>{{host.name}}</td>
146 <td>{{host.profile}}</td>
147 <td>{{host.booked|yesno:"Yes,No"}}</td>
148 {% if host.working %}
149 <td class="bg-success text-white">Yes</td>
151 <td class="bg-danger text-white">No</td>
153 <td>{{host.vendor}}</td>
164 {% endblock content %}