Skip to content

Commit

Permalink
remove siae_has_detail_contact_click_date
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Nov 2, 2023
1 parent 0231167 commit 8cfbe2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lemarche/templates/tenders/_detail_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>
{% elif user_partner_can_display_tender_contact_details %}
<hr class="my-5">
{% 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 %}
<!-- for SIAE, contact details are displayed above (see tenders/detail.html) -->
{% endif %}
{% endif %}
Expand Down
6 changes: 3 additions & 3 deletions lemarche/templates/tenders/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div class="s-section__container container">
{# 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 %}
<div class="row">
{% if not tender.response_is_anonymous %}
<div class="col-12 col-lg-8">
Expand Down Expand Up @@ -109,7 +109,7 @@
Besoin d'aide ? contacter le support via le chat en ligne qui se trouve en bas à droite.
</p>
</div>
{% 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 %}
Expand All @@ -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" %}
Expand Down
2 changes: 1 addition & 1 deletion lemarche/www/tenders/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8cfbe2a

Please sign in to comment.