diff --git a/lemarche/templates/tenders/detail.html b/lemarche/templates/tenders/detail.html index be1fba027..8516c3d3f 100644 --- a/lemarche/templates/tenders/detail.html +++ b/lemarche/templates/tenders/detail.html @@ -66,12 +66,33 @@ {% endblock %} {% block modals %} -{% include "auth/_login_or_signup_siae_tender_modal.html" %} -{% include "tenders/_detail_contact_click_confirm_modal.html" %} -{% include "tenders/_detail_not_interested_click_confirm_modal.html" %} +{% if user.is_authenticated or siae_id %} + {% if not siae_has_detail_contact_click_date %} + {% include "auth/_login_or_signup_siae_tender_modal.html" %} + {% endif %} + {% if not siae_has_detail_cocontracting_click_date %} + {% include "tenders/_detail_contact_click_confirm_modal.html" %} + {% endif %} + {% if not siae_has_detail_not_interested_click_date %} + {% include "tenders/_detail_not_interested_click_confirm_modal.html" %} + {% endif %} +{% endif %} {% endblock %} {% block extra_js %} +{% if not siae_has_detail_not_interested_click_date %} + +{% endif %} {% if TALLY_NPS_FORM_ID and show_nps %}