{% extends "backoffice/base.html" %} {% block page_title %}Publicités{% endblock %} {% block breadcrumb %}Marketing / Publicités{% endblock %} {% block content %} Nouvelle publicité
Tous les emplacements {% for key, label in positions %}{{ label }}{% endfor %}
{% if page_obj.object_list %}
{% for ad in page_obj %} {% endfor %}
CampagneEmplacementDiffusionAffichagesClicsTaux de clicActions
{% picture ad.image "sm" "size-full object-cover" sizes="80px" %}
{{ ad.titre }}

{{ ad.annonceur|default:ad.lien|default:"Sans lien" }}

{{ ad.get_position_display }} {% with st=ad.diffusion_status %} {% if st == "en_cours" %}En cours{% elif st == "a_venir" %}À venir{% elif st == "terminee" %}Terminée{% else %}Désactivée{% endif %} {% endwith %}

{% if ad.date_debut %}du {{ ad.date_debut|date:"d/m/Y" }}{% endif %}{% if ad.date_fin %} au {{ ad.date_fin|date:"d/m/Y" }}{% endif %}{% if not ad.date_debut and not ad.date_fin %}Sans limite{% endif %}

{{ ad.impressions }} {{ ad.clics }} {{ ad.ctr }} %
{% if ad.actif %}Désactiver{% else %}Activer{% endif %} {% icon "pencil" "size-4" %}
{% else %} Créez une campagne pour l'afficher dans la barre latérale, l'en-tête ou les articles. {% endif %}
{% endblock %}