2026-06-03 10:43:17 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
<div class="section">
|
2026-06-20 13:14:41 +01:00
|
|
|
<h2>{{ _('Loan History') }}</h2>
|
2026-06-03 10:43:17 +01:00
|
|
|
{% if loans %}
|
2026-06-20 01:20:39 +01:00
|
|
|
<div class="table-container">
|
|
|
|
|
<table>
|
|
|
|
|
<thead>
|
2026-06-03 10:43:17 +01:00
|
|
|
<tr>
|
2026-06-20 13:14:41 +01:00
|
|
|
<th>{{ _('Tablet') }}</th>
|
|
|
|
|
<th>{{ _('Serial Number') }}</th>
|
|
|
|
|
<th>{{ _('Borrower') }}</th>
|
|
|
|
|
<th>{{ _('Loan Date') }}</th>
|
|
|
|
|
<th>{{ _('Return Date') }}</th>
|
|
|
|
|
<th>{{ _('Status') }}</th>
|
2026-06-03 10:43:17 +01:00
|
|
|
</tr>
|
2026-06-20 01:20:39 +01:00
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for loan in loans %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ loan.brand }} {{ loan.model }}</td>
|
|
|
|
|
<td>{{ loan.serial_number }}</td>
|
|
|
|
|
<td>{{ loan.name }}</td>
|
|
|
|
|
<td>{{ loan.loan_date }}</td>
|
|
|
|
|
<td>{{ loan.return_date or '-' }}</td>
|
|
|
|
|
<td>{{ loan.status }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2026-06-03 10:43:17 +01:00
|
|
|
{% else %}
|
2026-06-20 13:14:41 +01:00
|
|
|
<p>{{ _('No loan history available.') }}</p>
|
2026-06-03 10:43:17 +01:00
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
2026-06-20 13:14:41 +01:00
|
|
|
{% endblock %}
|