aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/base/dashboard/lab_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/base/dashboard/lab_list.html')
-rw-r--r--src/templates/base/dashboard/lab_list.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/templates/base/dashboard/lab_list.html b/src/templates/base/dashboard/lab_list.html
new file mode 100644
index 0000000..ba627bc
--- /dev/null
+++ b/src/templates/base/dashboard/lab_list.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+{% block content %}
+<div class="row">
+ {% for lab in labs %}
+ <div class="col-12 col-md-6 col-lg-4 col-xl-3 mb-3">
+ <div class="card h-100">
+ <div class="card-header">
+ <h3 class="mt-2">{{lab.name}}</h3>
+ </div>
+ <ul class="list-group list-group-flush h-100">
+ <li class="list-group-item">name: {{lab.name}}</li>
+ <li class="list-group-item">description: {{lab.description}}</li>
+ <li class="list-group-item">location: {{lab.location}}</li>
+ {% if lab.status == 0 %}
+ <li class="list-group-item">status: Up</li>
+ {% elif lab.status == 100 %}
+ <li class="list-group-item">status: Down for Maintenance</li>
+ {% elif lab.status == 200 %}
+ <li class="list-group-item">status: Down</li>
+ {% endif %}
+ </ul>
+ <div class="card-footer">
+ <a class="btn btn-primary w-100" href="/lab/{{lab.name}}/">Details</a>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
+</div>
+{% endblock %} \ No newline at end of file