66 lines
1.7 KiB
HTML
66 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
{% load paginacion %}
|
|
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col">
|
|
<h3>{{ subtitle }}</h3>
|
|
</div>
|
|
<div class="col text-center">
|
|
{% if lot %}
|
|
<a href="{% url 'lot:documents' object.id %}" type="button" class="btn btn-green-admin">
|
|
<i class="bi bi-folder2"></i>
|
|
{% trans 'Documents' %}
|
|
</a>
|
|
{% endif %}
|
|
<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>
|
|
{% if lot %}
|
|
<a href="{% url 'lot:annotations' object.id %}" type="button" class="btn btn-green-admin">
|
|
<i class="bi bi-tag"></i>
|
|
{% trans 'Annotations' %}
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="dataTable-container">
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" data-sortable="">
|
|
<a class="dataTable-sorter" href="#">Title</a>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
{% for dev in devices %}
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<input type="checkbox" name="devices" value="{{ dev.id }}" />
|
|
</td>
|
|
<td>
|
|
<a href="{% url 'device:details' dev.id %}">
|
|
{{ dev.type }} {{ dev.manufacturer }} {{ dev.model }}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
{% endfor %}
|
|
</table>
|
|
<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>
|
|
</form>
|
|
</div>
|
|
<div class="row mt-3">
|
|
<div class="col">
|
|
{% render_pagination page total_pages limit %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|