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/labels/label_list.html

86 lines
2.7 KiB
HTML
Raw Normal View History

2022-01-11 12:13:57 +00:00
{% extends "ereuse_devicehub/base_site.html" %}
{% block main %}
<div class="pagetitle">
<h1>Inventory</h1>
<nav>
<ol class="breadcrumb">
2022-02-02 10:41:29 +00:00
<li class="breadcrumb-item active">{{ page_title }}</li>
2022-01-11 12:13:57 +00:00
</ol>
</nav>
</div><!-- End Page Title -->
<section class="section profile">
<div class="row">
<div class="col-xl-12">
<div class="card">
<div class="card-body pt-3">
<!-- Bordered Tabs -->
2022-04-12 10:59:53 +00:00
<div class="btn-group dropdown m-1">
2022-03-31 14:12:35 +00:00
<a href="{{ url_for('labels.tag_add')}}" type="button" class="btn btn-primary">
2022-01-11 12:13:57 +00:00
<i class="bi bi-plus"></i>
2022-04-28 09:47:52 +00:00
Create Named Unique Identifier
2022-01-11 12:13:57 +00:00
<span class="caret"></span>
</a>
</div>
2022-04-12 10:59:53 +00:00
<div class="btn-group dropdown m-1" uib-dropdown="">
2022-03-31 14:12:35 +00:00
<a href="{{ url_for('labels.tag_unnamed_add')}}" type="button" class="btn btn-primary">
2022-01-11 12:13:57 +00:00
<i class="bi bi-plus"></i>
2022-04-28 09:47:52 +00:00
Create UnNamed Unique Identifier
2022-01-11 12:13:57 +00:00
<span class="caret"></span>
</a>
</div>
<div class="tab-content pt-2">
<div class="tab-pane fade show active profile-overview" id="profile-overview">
<h5 class="card-title">Computers</h5>
<table class="table">
<thead>
<tr>
<th scope="col">Code</th>
<th scope="col">Type</th>
<th scope="col">Provider</th>
<th scope="col">Device</th>
<th scope="col">Created</th>
2022-01-11 12:13:57 +00:00
</tr>
</thead>
<tbody>
{% for tag in tags %}
<tr>
2022-03-31 14:12:35 +00:00
<td><a href="{{ url_for('labels.label_details', id=tag.id) }}">{{ tag.id }}</a></td>
2022-04-28 09:47:52 +00:00
<td>{% if tag.provider %}Unnamed unique Identifier {% else %}Named unique identifier{% endif %}</td>
2022-01-11 12:13:57 +00:00
<td>{{ tag.get_provider }}</td>
2022-01-25 09:54:33 +00:00
<td>
{% if tag.device %}
2022-04-12 10:59:22 +00:00
<a href="{{ url_for('inventory.device_details', id=tag.device.devicehub_id)}}">
{{ tag.device.verbose_name }}
2022-01-25 09:54:33 +00:00
</a>
{% endif %}
</td>
<td>{{ tag.created.strftime('%H:%M %d-%m-%Y') }}</td>
2022-01-11 12:13:57 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div><!-- End Bordered Tabs -->
</div>
</div>
</div>
</div>
</section>
<!-- Custom Code -->
<script>
const table = new simpleDatatables.DataTable("table")
</script>
{% endblock main %}