From 8cfbe2aa0ba763885740d7c3eac64df396a5c79b Mon Sep 17 00:00:00 2001 From: "madjid.asa" Date: Thu, 2 Nov 2023 12:47:17 +0100 Subject: [PATCH] remove siae_has_detail_contact_click_date --- lemarche/templates/tenders/_detail_card.html | 2 +- lemarche/templates/tenders/detail.html | 6 +++--- lemarche/www/tenders/views.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lemarche/templates/tenders/_detail_card.html b/lemarche/templates/tenders/_detail_card.html index 26e0a6464..25fc853a0 100644 --- a/lemarche/templates/tenders/_detail_card.html +++ b/lemarche/templates/tenders/_detail_card.html @@ -40,7 +40,7 @@

{% elif user_partner_can_display_tender_contact_details %}
{% include "tenders/_detail_contact.html" with tender=tender %} - {% elif user_siae_has_detail_contact_click_date and not tender.deadline_date_outdated %} + {% elif siae_has_detail_contact_click_date and not tender.deadline_date_outdated %} {% endif %} {% endif %} diff --git a/lemarche/templates/tenders/detail.html b/lemarche/templates/tenders/detail.html index 29f0b8d25..be39238f8 100644 --- a/lemarche/templates/tenders/detail.html +++ b/lemarche/templates/tenders/detail.html @@ -29,7 +29,7 @@
{# Afficher les contacts en haut + conseil #} {% if not tender.deadline_date_outdated and not tender.response_is_anonymous %} - {% if user_siae_has_detail_contact_click_date or siae_has_detail_contact_click_date %} + {% if siae_has_detail_contact_click_date %}
{% if not tender.response_is_anonymous %}
@@ -109,7 +109,7 @@ Besoin d'aide ? contacter le support via le chat en ligne qui se trouve en bas à droite.

- {% elif not user_siae_has_detail_contact_click_date %} + {% elif not siae_has_detail_contact_click_date %} {% include "tenders/_detail_cta.html" with tender=tender user_can_click=True %} {% include "tenders/_detail_cta_cocontracting.html" with tender=tender %} {% endif %} @@ -124,7 +124,7 @@ {% endif %} {% comment %} for anonymous tenders {% endcomment %} {% elif tender.response_is_anonymous and siae_id or tender.response_is_anonymous and user.is_authenticated %} - {% if not siae_has_detail_contact_click_date and not user_siae_has_detail_contact_click_date %} + {% if not siae_has_detail_contact_click_date %} {% include "tenders/_detail_cta.html" with tender=tender user_can_click=True tender_is_anonymous=True %} {% else %} {% include "tenders/_detail_success_contact.html" %} diff --git a/lemarche/www/tenders/views.py b/lemarche/www/tenders/views.py index ea11a18f7..f5803c356 100644 --- a/lemarche/www/tenders/views.py +++ b/lemarche/www/tenders/views.py @@ -375,7 +375,7 @@ def get_context_data(self, **kwargs): ).exists() if user.is_authenticated: if user.kind == User.KIND_SIAE: - context["user_siae_has_detail_contact_click_date"] = TenderSiae.objects.filter( + context["siae_has_detail_contact_click_date"] = TenderSiae.objects.filter( tender=self.object, siae__in=user.siaes.all(), detail_contact_click_date__isnull=False ).exists() if show_nps: