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

84 lines
2.5 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>
Create Named Tag
<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>
Create UnNamed Tag
<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>
</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-01-11 12:13:57 +00:00
<td>{% if tag.provider %}Unnamed tag {% else %}Named tag{% endif %}</td>
<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>
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 %}