From 8db69c655413e2ecc5bfc3f9b4ed7723e21b0d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Reuiller?= Date: Wed, 6 Mar 2024 18:02:33 +0100 Subject: [PATCH] show nps after survey transactionned was answered by a buyer --- config/settings/base.py | 3 ++- lemarche/templates/tenders/detail.html | 4 ++-- lemarche/utils/settings_context_processors.py | 1 - lemarche/www/tenders/views.py | 11 ++++++++--- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/config/settings/base.py b/config/settings/base.py index 00aa710da..c605472d1 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -813,7 +813,8 @@ FORM_PARTENAIRES = ( "https://docs.google.com/forms/d/e/1FAIpQLScx1k-UJ-962_rSgPJGabc327gGjFUho6ypgcZHCubuwTl7Lg/viewform" ) -TALLY_NPS_FORM_ID = env.str("TALLY_NPS_FORM_ID", "") +TALLY_BUYER_NPS_FORM_ID = env.str("TALLY_BUYER_NPS_FORM_ID", "") +TALLY_SIAE_NPS_FORM_ID = env.str("TALLY_SIAE_NPS_FORM_ID", "") PARTNER_APPROCH_USER_ID = env.int("PARTNER_APPROCH_USER_ID", 0) diff --git a/lemarche/templates/tenders/detail.html b/lemarche/templates/tenders/detail.html index be1fba027..36afe8cd3 100644 --- a/lemarche/templates/tenders/detail.html +++ b/lemarche/templates/tenders/detail.html @@ -72,11 +72,11 @@ {% endblock %} {% block extra_js %} -{% if TALLY_NPS_FORM_ID and show_nps %} +{% if nps_form_id %}