GestionTablets/templates/history.html

38 lines
1.4 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block content %}
<div class="section">
<h2>{{ _('Loan History') }}</h2>
{% if loans %}
<div class="table-container">
<table>
<thead>
<tr>
<th>{{ _('Tablet') }}</th>
<th>{{ _('Serial Number') }}</th>
<th>{{ _('Borrower') }}</th>
<th>{{ _('Loan Date') }}</th>
<th>{{ _('Return Date') }}</th>
<th>{{ _('Status') }}</th>
</tr>
</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>
{% else %}
<p>{{ _('No loan history available.') }}</p>
{% endif %}
</div>
{% endblock %}