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="panel panel-default">
13 <div class="panel-heading clearfix">
14 <h4 style="display: inline;">Lab Profile</h4>
15 <a data-toggle="collapse" data-target="#panel_overview" class="btn pull-right" style="line-height: 1;" >Expand</a>
17 <div class="panel-body" id="panel_overview">
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="panel panel-default">
54 <div class="panel-heading clearfix">
55 <h4 style="display: inline;">Host Profiles</h4>
57 <a data-toggle="collapse" data-target="#profile_panel" class="btn pull-right" style="line-height: 1;" >Expand</a>
59 <div class="panel-body pod_panel" id="profile_panel">
61 {% for profile in hostprofiles %}
63 <td>{{profile.name}}</td>
64 <td>{{profile.description}}</td>
65 <td><a href="/resource/profiles/{{ profile.id }}" class="btn btn-primary">Profile</a></td>
73 <div class="panel panel-default">
74 <div class="panel-heading clearfix">
75 <h4 style="display: inline;">Networking Capabilities</h4>
76 <a data-toggle="collapse" data-target="#network_panel" class="btn pull-right" style="line-height: 1;" >Expand</a>
79 <div class="panel-body" id="network_panel">
83 <td>Block Size: (number of VLANs allowed per deployment)</td><td>{{lab.vlan_manager.block_size}}</td>
86 <td>Overlapping Vlans Allowed (user can pick which VLANs they wish to use): </td>
87 <td>{{lab.vlan_manager.allow_overlapping}}</td>
92 <div class="panel panel-default">
93 <div class="panel-heading clearfix">
94 <h4 style="display: inline;">Images</h4>
95 <a data-toggle="collapse" data-target="#image_panel" class="btn pull-right" style="line-height: 1;" >Expand</a>
97 <div class="panel-body" id="image_panel">
102 <th>For Host Type</th>
105 {% for image in images %}
107 <td>{{image.name}}</td>
108 <td>{{image.owner}}</td>
109 <td>{{image.host_type}}</td>
110 <td>{{image.description}}</td>
118 <div class="col-lg-8">
119 <div class="panel panel-default">
120 <div class="panel-heading clearfix">
121 <h4 style="display: inline;">Lab Hosts</h4>
122 <p style="display: inline; margin-left: 10px;"></p>
123 <a data-toggle="collapse" data-target="#lab_hosts_panel" class="btn pull-right" style="line-height: 1;" >Expand</a>
126 <div class="panel-body" id="lab_hosts_panel">
127 <table class="table">
135 {% for host in lab.host_set.all %}
137 <td>{{host.labid}}</td>
138 <td>{{host.profile}}</td>
139 <td>{{host.booked}}</td>
140 {% if host.working %}
141 <td style="background-color: #40B976;">{{host.working}}</td>
143 <td>{{host.working}}</td>
145 <td>{{host.vendor}}</td>
156 {% endblock content %}