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 my-2">
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 id="panel_overview" class="card-body collapse show">
20 <td>Lab Name: </td><td>{{lab.name}}</td>
23 <td>Lab Location: </td><td>{{lab.location}}</td>
27 <td>{{lab.contact_email}}</td>
29 {% if lab.contact_phone %}
32 <td>{{lab.contact_phone}}</td>
37 {% if lab.status < 100 %}
38 <td><div style="border-radius: 50%; background:#40B976; height: 20px; width: 20px; display: inline-block;"></div>
40 {% elif lab.status < 200 %}
42 <div style="border-radius: 50%; background:#eeee00; height: 20px; width: 20px; display: inline-block;"></div>
43 Temporarily Offline</td>
46 <div style="border-radius: 50%; background:#e50000; height: 20px; width: 20px; display: inline-block;"></div>
47 Offline Indefinitely</td>
53 <div class="card my-2">
54 <div class="card-header d-flex">
55 <h4 class="d-inline-block">Host Profiles</h4>
56 <button data-toggle="collapse" data-target="#profile_panel" class="btn btn-outline-secondary ml-auto" style="line-height: 1;" >Expand</button>
58 <div id="profile_panel" class="card-body collapse show">
60 {% for profile in hostprofiles %}
62 <td>{{profile.name}}</td>
63 <td>{{profile.description}}</td>
64 <td><a href="/resource/profiles/{{ profile.id }}" class="btn btn-info">Profile</a></td>
72 <div class="card my-2">
73 <div class="card-header d-flex">
74 <h4 style="display: inline;">Networking Capabilities</h4>
75 <button data-toggle="collapse" data-target="#network_panel" class="btn btn-outline-secondary ml-auto" style="line-height: 1;" >Expand</button>
78 <div class="card-body collapse show" id="network_panel">
81 <td>Block Size: (number of VLANs allowed per deployment)</td><td>{{lab.vlan_manager.block_size}}</td>
84 <td>Overlapping Vlans Allowed (user can pick which VLANs they wish to use): </td>
85 <td>{{lab.vlan_manager.allow_overlapping}}</td>
90 <div class="card my-2">
91 <div class="card-header d-flex">
93 <button data-toggle="collapse" data-target="#image_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
95 <div class="card-body collapse show" id="image_panel">
100 <th>For Host Type</th>
103 {% for image in images %}
105 <td>{{image.name}}</td>
106 <td>{{image.owner}}</td>
107 <td>{{image.host_type}}</td>
108 <td>{{image.description}}</td>
116 <div class="col-lg-8">
117 <div class="card my-2">
118 <div class="card-header d-flex">
120 <button data-toggle="collapse" data-target="#lab_hosts_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
123 <div class="card-body collapse show" id="lab_hosts_panel">
124 <table class="table">
132 {% for host in lab.host_set.all %}
134 <td>{{host.labid}}</td>
135 <td>{{host.profile}}</td>
136 <td>{{host.booked}}</td>
137 {% if host.working %}
138 <td style="background-color: #40B976;">{{host.working}}</td>
140 <td>{{host.working}}</td>
142 <td>{{host.vendor}}</td>
153 {% endblock content %}