mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-01 11:58:04 +00:00
32 lines
800 B
Django/Jinja
32 lines
800 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
{% from "core/macros.jinja" import paginate_jinja %}
|
|
|
|
{% block title %}
|
|
{% trans %}Operation logs{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans %}Date{% endtrans %}</th>
|
|
<th>{% trans %}Operation type{% endtrans %}</th>
|
|
<th>{% trans %}Label{% endtrans %}</th>
|
|
<th>{% trans %}Operator{% endtrans %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for log in object_list %}
|
|
<tr>
|
|
<td>{{ log.date }} </td>
|
|
<td>{{ log.get_operation_type_display() }}</td>
|
|
<td>{{ log.label }}</td>
|
|
<td>{{ log.operator }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<br>
|
|
{{ paginate_jinja(page_obj, paginator) }}
|
|
{% endblock content %} |