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 class="collapse show" id="panel_overview">
18 <div class="card-body">
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-2">
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="card-body">
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>
82 <div class="card my-2">
83 <div class="card-header d-flex">
84 <h4 class="d-inline">Networking Capabilities</h4>
85 <button data-toggle="collapse" data-target="#network_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
88 <div class="collapse show" id="network_panel">
89 <div class="card-body">
92 <td>Block Size: (number of VLANs allowed per deployment)</td><td>{{lab.vlan_manager.block_size}}</td>
95 <td>Overlapping Vlans Allowed (user can pick which VLANs they wish to use): </td>
96 <td>{{lab.vlan_manager.allow_overlapping}}</td>
102 <div class="card my-2">
103 <div class="card-header d-flex">
105 <button data-toggle="collapse" data-target="#image_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
107 <div class="collapse show" id="image_panel">
108 <div class="card-body">
109 <table class="table">
113 <th>For Host Type</th>
116 {% for image in images %}
118 <td>{{image.name}}</td>
119 <td>{{image.owner}}</td>
120 <td>{{image.host_type}}</td>
121 <td>{{image.description}}</td>
130 <div class="col-lg-8">
131 <div class="card my-2">
132 <div class="card-header d-flex">
134 <button data-toggle="collapse" data-target="#lab_hosts_panel" class="btn btn-outline-secondary ml-auto">Expand</button>
137 <div class="collapse show" id="lab_hosts_panel">
138 <div class="card-body">
139 <table class="table">
147 {% for host in lab.host_set.all %}
149 <td>{{host.labid}}</td>
150 <td>{{host.profile}}</td>
151 <td>{{host.booked}}</td>
152 {% if host.working %}
153 <td class="bg-success text-white">{{host.working}}</td>
155 <td>{{host.working}}</td>
157 <td>{{host.vendor}}</td>
169 {% endblock content %}