2022-01-31 18:22:54 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="container">
|
|
|
|
<h3>Dernières opérations</h3>
|
2022-02-08 16:40:32 +01:00
|
|
|
{% if logs.items %}
|
|
|
|
<ul>
|
|
|
|
{% for log in logs.items %}
|
|
|
|
<li><span style="margin-right: 10px;">{{ log.date.strftime('%d %b %Hh%M') }}</span><span>{{ log.text|safe }} par {{ log.authenticated_user|get_nomcomplet }}</span></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<a href="{{ url_for('entreprises.logs', page=logs.prev_num) }}" class="btn btn-default {% if logs.page == 1 %}disabled{% endif %}">
|
|
|
|
«
|
|
|
|
</a>
|
|
|
|
{% for page_num in logs.iter_pages(left_edge=1, right_edge=1, left_current=1, right_current=2) %}
|
|
|
|
{% if page_num %}
|
|
|
|
{% if logs.page == page_num %}
|
|
|
|
<a href="{{ url_for('entreprises.logs', page=page_num) }}" class="btn btn-inverse">{{ page_num }}</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ url_for('entreprises.logs', page=page_num) }}" class="btn btn-default">{{ page_num }}</a>
|
|
|
|
{% endif %}
|
2022-01-31 18:22:54 +01:00
|
|
|
{% else %}
|
2022-02-08 16:40:32 +01:00
|
|
|
...
|
2022-01-31 18:22:54 +01:00
|
|
|
{% endif %}
|
2022-02-08 16:40:32 +01:00
|
|
|
{% endfor %}
|
|
|
|
<a href="{{ url_for('entreprises.logs', page=logs.next_num) }}" class="btn btn-default {% if logs.page == logs.pages %}disabled{% endif %}">
|
|
|
|
»
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="text-center">
|
|
|
|
Page {{ logs.page }} sur {{ logs.pages }}
|
|
|
|
</p>
|
2022-01-31 18:22:54 +01:00
|
|
|
{% else %}
|
2022-02-08 16:40:32 +01:00
|
|
|
<div>Aucune opération</div>
|
2022-01-31 18:22:54 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-02-08 16:40:32 +01:00
|
|
|
|
|
|
|
|
2022-01-31 18:22:54 +01:00
|
|
|
{% endblock %}
|