2024-07-05 13:32:07 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
2024-10-02 10:13:05 +00:00
|
|
|
{% load paginacion %}
|
|
|
|
|
2024-07-05 13:32:07 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h3>{{ subtitle }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="col text-center">
|
2024-07-30 17:38:04 +00:00
|
|
|
{% if lot %}
|
2024-07-30 11:37:08 +00:00
|
|
|
<a href="{% url 'lot:documents' object.id %}" type="button" class="btn btn-green-admin">
|
2024-07-05 13:32:07 +00:00
|
|
|
<i class="bi bi-folder2"></i>
|
2024-07-30 11:37:08 +00:00
|
|
|
{% trans 'Documents' %}
|
2024-07-05 13:32:07 +00:00
|
|
|
</a>
|
2024-07-30 17:38:04 +00:00
|
|
|
{% endif %}
|
2024-07-05 13:32:07 +00:00
|
|
|
<a href="{# url 'idhub:admin_people_activate' object.id #}" type="button" class="btn btn-green-admin">
|
|
|
|
<i class="bi bi-reply"></i>
|
|
|
|
{% trans 'Exports' %}
|
|
|
|
</a>
|
2024-07-30 17:38:04 +00:00
|
|
|
{% if lot %}
|
2024-07-30 11:37:08 +00:00
|
|
|
<a href="{% url 'lot:annotations' object.id %}" type="button" class="btn btn-green-admin">
|
2024-07-05 13:32:07 +00:00
|
|
|
<i class="bi bi-tag"></i>
|
2024-07-30 11:37:08 +00:00
|
|
|
{% trans 'Annotations' %}
|
2024-07-05 13:32:07 +00:00
|
|
|
</a>
|
2024-07-30 17:38:04 +00:00
|
|
|
{% endif %}
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="dataTable-container">
|
2024-07-09 11:34:30 +00:00
|
|
|
<form method="post">
|
|
|
|
{% csrf_token %}
|
2024-07-05 13:32:07 +00:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col" data-sortable="">
|
2024-09-26 03:22:21 +00:00
|
|
|
select
|
|
|
|
</th>
|
|
|
|
<th scope="col" data-sortable="">
|
|
|
|
shortid
|
|
|
|
</th>
|
|
|
|
<th scope="col" data-sortable="">
|
|
|
|
type
|
|
|
|
</th>
|
|
|
|
<th scope="col" data-sortable="">
|
|
|
|
manufacturer
|
|
|
|
</th>
|
|
|
|
<th scope="col" data-sortable="">
|
|
|
|
model
|
2024-07-05 13:32:07 +00:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for dev in devices %}
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2024-07-09 11:34:30 +00:00
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="devices" value="{{ dev.id }}" />
|
|
|
|
</td>
|
2024-07-05 13:32:07 +00:00
|
|
|
<td>
|
2024-07-15 14:23:14 +00:00
|
|
|
<a href="{% url 'device:details' dev.id %}">
|
2024-09-26 03:22:21 +00:00
|
|
|
{{ dev.shortid }}
|
2024-07-15 14:23:14 +00:00
|
|
|
</a>
|
2024-07-05 13:32:07 +00:00
|
|
|
</td>
|
2024-09-26 03:22:21 +00:00
|
|
|
<td>
|
|
|
|
{{ dev.type }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ dev.manufacturer }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ dev.model }}
|
|
|
|
</td>
|
2024-07-05 13:32:07 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2024-10-02 10:51:40 +00:00
|
|
|
<button class="btn btn-green-admin" type="submit" value="{% url 'lot:del_devices' %}" name="url">Remove</button> <button class="btn btn-green-admin" type="submit" name="url" value="{% url 'lot:add_devices' %}">add</button>
|
2024-07-09 15:31:24 +00:00
|
|
|
</form>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
2024-10-02 10:13:05 +00:00
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col">
|
2024-10-02 10:51:40 +00:00
|
|
|
{% render_pagination page total_pages limit %}
|
2024-10-02 10:13:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
{% endblock %}
|