This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
devicehub-teal/ereuse_devicehub/templates/inventory/snapshots_list.html

89 lines
2.9 KiB
HTML
Raw Normal View History

2022-05-11 14:59:36 +00:00
{% extends "ereuse_devicehub/base_site.html" %}
{% block main %}
<div class="pagetitle">
<h1>Inventory</h1>
<nav>
<ol class="breadcrumb">
2022-05-18 09:01:23 +00:00
<li class="breadcrumb-item"><a href="{{ url_for('inventory.devicelist')}}">Inventory</a></li>
<li class="breadcrumb-item active">Snapshots</li>
2022-05-11 14:59:36 +00:00
</ol>
</nav>
</div><!-- End Page Title -->
<section class="section profile">
<div class="row">
<div class="col-xl-12">
<div class="card">
2022-05-18 09:01:23 +00:00
<div class="card-body pt-3" style="min-height: 650px;">
2022-05-11 14:59:36 +00:00
<!-- Bordered Tabs -->
2022-05-18 09:01:23 +00:00
<div class="tab-content pt-5">
<div id="devices-list" class="tab-pane fade devices-list active show">
<div class="tab-content pt-2">
2022-05-11 14:59:36 +00:00
<table class="table">
<thead>
<tr>
2022-05-18 09:01:23 +00:00
<th scope="col">SID</th>
<th scope="col">Snapshot id</th>
<th scope="col">Version</th>
2022-06-03 09:06:49 +00:00
<th scope="col">DHID</th>
2022-05-18 09:01:23 +00:00
<th scope="col">Status</th>
<th scope="col" data-type="date" data-format="DD-MM-YYYY">Time</th>
2022-05-11 14:59:36 +00:00
</tr>
</thead>
<tbody>
2022-05-18 09:01:23 +00:00
{% for snap in snapshots_log %}
2022-05-11 14:59:36 +00:00
<tr>
<td>
2022-05-19 16:16:47 +00:00
{% if snap.sid %}
<a href="{{ url_for('inventory.snapshot_detail', snapshot_uuid=snap.snapshot_uuid) }}">
2022-05-18 09:01:23 +00:00
{{ snap.sid }}
2022-05-19 16:16:47 +00:00
</a>
{% endif %}
2022-05-18 09:01:23 +00:00
</td>
<td>
2022-05-19 16:16:47 +00:00
<a href="{{ url_for('inventory.snapshot_detail', snapshot_uuid=snap.snapshot_uuid) }}">
2022-05-18 09:01:23 +00:00
{{ snap.snapshot_uuid }}
2022-05-19 16:16:47 +00:00
</a>
2022-05-18 09:01:23 +00:00
</td>
<td>
2022-05-18 10:46:57 +00:00
{{ snap.version }}
2022-05-18 09:01:23 +00:00
</td>
<td>
{% if snap.device %}
<a href="{{ url_for('inventory.device_details', id=snap.device) }}">
{{ snap.device }}
2022-05-18 09:01:23 +00:00
</a>
{% endif %}
</td>
<td>
{{ snap.status }}
</td>
<td>{{ snap.created.strftime('%H:%M %d-%m-%Y') }}</td>
2022-05-11 14:59:36 +00:00
</tr>
{% endfor %}
</tbody>
</table>
2022-05-18 09:01:23 +00:00
</div>
</div>
2022-05-11 14:59:36 +00:00
2022-05-18 09:01:23 +00:00
</div><!-- End Bordered Tabs -->
</div>
2022-05-11 14:59:36 +00:00
</div>
</div>
2022-05-18 09:01:23 +00:00
<div id="NotificationsContainer" style="position: absolute; bottom: 0; right: 0; margin: 10px; margin-top: 70px; width: calc(100% - 310px);"></div>
2022-05-11 14:59:36 +00:00
</div>
</div>
</section>
<!-- Custom Code -->
<script>
const table = new simpleDatatables.DataTable("table")
</script>
{% endblock main %}