Skip to content

Commit

Permalink
Conditional hide modals
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Mar 4, 2024
1 parent 6f014b3 commit 5cb1420
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions lemarche/templates/tenders/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,15 @@
{% 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 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 %}
{% endblock %}

{% block extra_js %}
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 @@ -511,7 +511,7 @@ class TenderDetailNotInterestedClickView(SiaeUserRequiredOrSiaeIdParamMixin, Det
Endpoint to handle 'not interested' button click
"""

template_name = "tenders/_detail_not_interested_click_confirm.html"
template_name = "tenders/_detail_not_interested_click_confirm_modal.html"
model = Tender

def get_object(self):
Expand Down

0 comments on commit 5cb1420

Please sign in to comment.