2026-06-09 23:54:38 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
<div class="section">
|
2026-06-20 13:14:41 +01:00
|
|
|
<h2>{{ _('Non-Loanable Devices Inventory') }}</h2>
|
|
|
|
|
<p>{{ _('These devices are tracked in inventory but cannot be loaned to users.') }}</p>
|
|
|
|
|
<a href="/add_non_loanable_device" class="btn">{{ _('Add Non-Loanable Device') }}</a>
|
2026-06-09 23:54:38 +01:00
|
|
|
|
|
|
|
|
{% if devices %}
|
2026-06-20 01:20:39 +01:00
|
|
|
<div class="table-container">
|
|
|
|
|
<table>
|
|
|
|
|
<thead>
|
2026-06-09 23:54:38 +01:00
|
|
|
<tr>
|
2026-06-20 13:14:41 +01:00
|
|
|
<th>{{ _('Type') }}</th>
|
|
|
|
|
<th>{{ _('Brand') }}</th>
|
|
|
|
|
<th>{{ _('Model') }}</th>
|
|
|
|
|
<th>{{ _('Serial Number') }}</th>
|
|
|
|
|
<th>{{ _('Location') }}</th>
|
|
|
|
|
<th>{{ _('Status') }}</th>
|
|
|
|
|
<th>{{ _('Actions') }}</th>
|
2026-06-09 23:54:38 +01:00
|
|
|
</tr>
|
2026-06-20 01:20:39 +01:00
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for device in devices %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ device.device_type }}</td>
|
|
|
|
|
<td>{{ device.brand }}</td>
|
|
|
|
|
<td>{{ device.model }}</td>
|
|
|
|
|
<td>{{ device.serial_number }}</td>
|
|
|
|
|
<td>{{ device.location or '-' }}</td>
|
|
|
|
|
<td>{{ device.status }}</td>
|
|
|
|
|
<td>
|
2026-06-20 13:14:41 +01:00
|
|
|
<a href="/edit_non_loanable_device/{{ device.id }}" class="btn">{{ _('Edit') }}</a>
|
|
|
|
|
<a href="/delete_non_loanable_device/{{ device.id }}" class="btn btn-danger" onclick="return confirm('{{ _("Are you sure you want to delete this device?") }}')">{{ _('Delete') }}</a>
|
2026-06-20 01:20:39 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2026-06-09 23:54:38 +01:00
|
|
|
{% else %}
|
2026-06-20 13:14:41 +01:00
|
|
|
<p>{{ _('No non-loanable devices registered.') }}</p>
|
2026-06-09 23:54:38 +01:00
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|