{% extends "mag/base_mag_ecom.html" %} {% load static %} {% block title %}AUTO-PIECE — Notifications{% endblock title %} {% block page %}Notifications{% endblock page %} {% block extra_head %} {% endblock extra_head %} {% block page_action_buttons %}
{% csrf_token %}
{% endblock page_action_buttons %} {% block main_content %}

{{ notifications|length }} notification{% if notifications|length != 1 %}s{% endif %} · {{ nb_non_lues }} non lue{% if nb_non_lues != 1 %}s{% endif %}

{% include "mag/partials/_alpine_table_toolbar.html" with search_placeholder="Rechercher titre, message, type…" %}
{% for n in notifications %} {% empty %} {% endfor %}
Statut Type Titre Message Date Actions
{% if n.lu %} Lue {% else %} Non lue {% endif %} {{ n.get_type_notification_display }} {{ n.titre }} {{ n.message|truncatechars:90 }} {{ n.date_creation|date:"d/m/Y H:i" }}
{% csrf_token %}
Aucune notification.
{% if notifications %} {% include "mag/partials/_table_pager.html" %} {% endif %}
{% endblock main_content %} {% block extra_js %} {% endblock extra_js %}