ba627bcb8e8906df4ffe406877b34b97a1d1a07c
[laas.git] / src / templates / base / dashboard / lab_list.html
1 {% extends "base.html" %}
2 {% block content %}
3 <div class="row">
4     {% for lab in labs %}
5     <div class="col-12 col-md-6 col-lg-4 col-xl-3 mb-3">
6         <div class="card h-100">
7             <div class="card-header">
8                 <h3 class="mt-2">{{lab.name}}</h3>
9             </div>
10             <ul class="list-group list-group-flush h-100">
11                 <li class="list-group-item">name: {{lab.name}}</li>
12                 <li class="list-group-item">description: {{lab.description}}</li>
13                 <li class="list-group-item">location: {{lab.location}}</li>
14                 {% if lab.status == 0 %}
15                 <li class="list-group-item">status: Up</li>
16                 {% elif lab.status == 100 %}
17                 <li class="list-group-item">status: Down for Maintenance</li>
18                 {% elif lab.status == 200 %}
19                 <li class="list-group-item">status: Down</li>
20                 {% endif %}
21             </ul>
22             <div class="card-footer">
23                 <a class="btn btn-primary w-100" href="/lab/{{lab.name}}/">Details</a>
24             </div>
25         </div>
26     </div>
27     {% endfor %}
28 </div>
29 {% endblock %}