{% if cards|objects:"pn_message"|with_custom_view:"publies-sur-les-formulaires"|count > 0 %}{% for fiche in cards|objects:"pn_message"|with_custom_view:"publies-sur-les-formulaires" %}{% if global_context.form_option_type_notification_raw in fiche|get:"typeformulairemulti" %} {% if fiche|get:"priseencompte" == "Non" %} {% include "qommon/forms/widgets/pn-single-notification.html" with refimgc="refimgdefaut" %} {% endif %} {% with cards|objects:"pn_preferencesusager"|filter_by_user:form_user|first as preference %} {# Debut with fiche préférence usager #} {% if preference.user.email == form_user_email %}{# Début vérification email #} {% with thememessage=fiche|get:"thematique" preferencetheme=preference|get:"form_var_thematiques" %}{# Début with thememessage & preferencethemel #} {% if thememessage in preferencetheme and fiche|get:"form_var_zone_diffusion_raw" == "metro" and preference|get:"form_var_metro" == True %} {% with thematique_raw=fiche|get:"form_var_thematique_raw" %} {% include "qommon/forms/widgets/pn-single-notification.html" with refimgc="pn:thematique:"|add:thematique_raw %} {% endwith %} {% endif %} {% with villesmessage=fiche|get:"form_var_villes_raw" preferenceville=preference|get:"form_var_villes_raw" %} {% if thememessage in preferencetheme %} {% for ville in villesmessage %} {% if ville in preferenceville %} {% ifchanged %} {% with thematique_raw=fiche|get:"form_var_thematique_raw" %} {% include "qommon/forms/widgets/pn-single-notification.html" with refimgc="pn:thematique:"|add:thematique_raw %} {% endwith %} {% endifchanged %} {% endif %} {% endfor %} {% endif %} {% endwith %} {% endwith %}{# Fin with thememessage & preferencethemel #} {% endif %} {# Fin vérif email usager #} {% endwith %} {# Fin with fiche préférence usager #} {% endif %}{% endfor %} {# Fin de la bouche sur les fiches #} {% endif %}{# fin vérif présence de fiches dans data #}