From 9d83c4e02f4f82de1b532b7f50d05818502bdb0d Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Tue, 26 Sep 2023 17:32:53 +0200 Subject: [PATCH] Tender: if author is Approch, then add message above external link --- config/settings/base.py | 5 ++++- lemarche/templates/tenders/_detail_contact.html | 7 +++++++ lemarche/utils/settings_context_processors.py | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/config/settings/base.py b/config/settings/base.py index 1fe8f8f88..ae8cb278b 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -398,6 +398,7 @@ HUBSPOT_API_KEY = env.str("HUBSPOT_API_KEY", "set-it") HUBSPOT_IS_ACTIVATED = env.bool("HUBSPOT_IS_ACTIVATED", False) + # Security # ------------------------------------------------------------------------------ @@ -771,7 +772,7 @@ } -# External URLs +# Internal & external # (if you need these settings in the template, add them to settings_context_processor.expose_settings) # ------------------------------------------------------------------------------ @@ -784,6 +785,7 @@ "https://docs.google.com/forms/d/e/1FAIpQLScx1k-UJ-962_rSgPJGabc327gGjFUho6ypgcZHCubuwTl7Lg/viewform" ) TALLY_NPS_FORM_ID = env.str("TALLY_NPS_FORM_ID", "") +APPROCH_USER_ID = env.str("APPROCH_USER_ID", "") # Misc @@ -837,6 +839,7 @@ ] FORM_RENDERER = "django.forms.renderers.TemplatesSetting" + # MTCAPTCHA # ------------------------------------------------------------------------------ MTCAPTCHA_PRIVATE_KEY = env.str("MTCAPTCHA_PRIVATE_KEY", "") diff --git a/lemarche/templates/tenders/_detail_contact.html b/lemarche/templates/tenders/_detail_contact.html index 1b040695b..4027f19a4 100644 --- a/lemarche/templates/tenders/_detail_contact.html +++ b/lemarche/templates/tenders/_detail_contact.html @@ -43,6 +43,13 @@

{% if tender.can_display_contact_external_link %}