adding table

This commit is contained in:
Cayo Puigdefabregas 2021-12-28 14:14:02 +01:00
parent c8be2bb640
commit 1da6484f26
1 changed files with 27 additions and 23 deletions

View File

@ -44,30 +44,34 @@
<div class="tab-pane fade show active profile-overview" id="profile-overview"> <div class="tab-pane fade show active profile-overview" id="profile-overview">
<h5 class="card-title">Computers</h5> <h5 class="card-title">Computers</h5>
<table class="table">
<div class="row"> <thead>
<div class="col">Title</div> <tr>
<div class="col-1">DHID</div> <th scope="col">Title</th>
<div class="col">Tags</div> <th scope="col">DHID</th>
<div class="col-1">Status</div> <th scope="col">Tags</th>
<div class="col">Update</div> <th scope="col">Status</th>
</div> <th scope="col">Update</th>
{% for dev in devices %} <th scope="col">Select all</th>
</tr>
<div class="row"> </thead>
<div class="col">{{ dev.type }} {{ dev.manufacturer }} {{ dev.model }}</div> <tbody>
<div class="col-1">{{ dev.devicehub_id }}</div> {% for dev in devices %}
<div class="col"> <tr>
{% for t in dev.tags %} <td>{{ dev.type }} {{ dev.manufacturer }} {{ dev.model }}</td>
{{ t.code }} <td>{{ dev.devicehub_id }}</td>
<td>
{% for t in dev.tags %}
{{ t.code }}{% if not loop.last %},{% endif %}
{% endfor %}
</td>
<td>{% if dev.status %}{{ dev.status }}{% endif %}</td>
<td>{{ dev.updated.strftime('%H:%M %d-%m-%Y') }}</td>
<td><input type="checkbox" /></td>
</tr>
{% endfor %} {% endfor %}
</div> </tbody>
<div class="col-1">{% if dev.status %}{{ dev.status }}{% endif %}</div> </table>
<div class="col">{{ dev.updated.strftime('%H:%M %d-%m-%Y') }}</div>
</div>
{% endfor %}
</div> </div>
<div class="tab-pane fade profile-edit pt-3" id="profile-edit"> <div class="tab-pane fade profile-edit pt-3" id="profile-edit">