mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
core/counter: add generic operation logs and implements it for Sellings and Refilling deletions
This commit is contained in:
32
rootplace/templates/rootplace/logs.jinja
Normal file
32
rootplace/templates/rootplace/logs.jinja
Normal file
@ -0,0 +1,32 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
{% from 'core/macros.jinja' import paginate %}
|
||||
|
||||
{% 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(page_obj, paginator) }}
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user