{% extends "mag/base_mag_ecom.html" %} {% load static %} {% load custom_filters %} {% block title %}AUTO-PIECE — Historique général{% endblock title %} {% block page %}Historique général{% endblock page %} {% block extra_head %} {% endblock extra_head %} {% block main_content %}
{% include "mag/partials/_periode_filter_modal.html" %}

{{ global_history|length }} historique{% if global_history|length > 1 %}s{% endif %}

{% include "mag/partials/_alpine_table_toolbar.html" with search_placeholder="Rechercher table, action, utilisateur…" %}
{% for entry in global_history %} {% empty %} {% endfor %}
N° Table Type d'action Utilisateur Changements Date de l'action
{{ forloop.counter }} {{ entry.model }} {% if entry.record.history_type == '+' %} Création {% elif entry.record.history_type == '-' %} Suppression {% else %} Modification {% endif %} {% if entry.record.utilisateur %}{{ entry.record.utilisateur }}{% else %}Système{% endif %} {% if entry.changed_fields %}
    {% for change in entry.changed_fields %}
  • {{ change }}
  • {% endfor %}
{% else %} N/A {% endif %}
{{ entry.record.history_date|date:"d M Y H:i:s" }}
Aucun historique pour cette période.
{% if global_history %} {% include "mag/partials/_table_pager.html" %} {% endif %}
{% endblock main_content %} {% block extra_js %} {% include "mag/partials/_periode_filter_js.html" %} {% endblock extra_js %}