{% extends "backoffice/base.html" %} {% block page_title %}{{ kind.plural|capfirst }}{% endblock %} {% block breadcrumb %}Contenus / {{ kind.plural|capfirst }}{% endblock %} {% block content %} {{ kind.new_label }} {# ---------- Onglets de statut ---------- #} {# ---------- Filtres ---------- #}
{% icon "search" "size-4" %}
{% if form.categorie %}
{{ form.categorie }}
{% endif %} {% if form.type %}
{{ form.type }}
{% endif %}
{% if form.auteur %}
{{ form.auteur }}
{% endif %}
{{ form.du }}
{{ form.au }}
{{ form.par_page }}
{% if kind.key == "article" %}{% endif %}
{# ---------- Tableau ---------- #}
{% csrf_token %}
sélectionné(s) {% if is_trash %} {% if can_destroy %}{% endif %} {% else %} {% if can_publish %} {% if kind.key == "article" %} {% endif %} {% endif %} {% endif %}
{% if rows %}
{% for obj, act in rows %} {% if kind.key == "article" %}{% endif %} {% endfor %}
Statut Actions
{% picture obj.image_principale "sm" "size-full object-cover" sizes="56px" %}
{{ obj.titre }}
{% if kind.key == "article" %}{{ obj.categorie.nom }}{% else %}{{ obj.get_type_display }}{% endif %} {% if obj.est_a_la_une %}{% icon "star" "size-3" %} À la une{% endif %} {% if obj.est_flash_info %}{% icon "bolt" "size-3" %} Flash info{% endif %} Modifié {{ obj.updated_at|timesince }}
{% icon "eye" "size-4" %} {% if act.edit %}{% icon "pencil" "size-4" %}{% endif %} {% if obj.is_published %}{% icon "external" "size-4" %}{% endif %} {% if act.restore %} {% endif %} {% if act.trash %} {% endif %} {% if act.destroy %} {% endif %}
{% else %} {% if is_trash %}La corbeille est vide.{% else %}Modifiez vos filtres ou créez un nouveau contenu.{% endif %} {% if not is_trash %}{{ kind.new_label }}{% endif %} {% endif %}
{# Formulaires d'action unitaires (hors du formulaire groupé) #} {% for obj, act in rows %} {% if act.trash or act.restore %} {% endif %} {% if act.destroy %} {% endif %} {% endfor %}
{% endblock %}