-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Anonymous tender: fix siae_id should be passed in CTA button
- Loading branch information
Showing
1 changed file
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!-- admin info --> | ||
{% if is_admin %} | ||
{% include "tenders/_detail_admin_extra_info.html" with tender=tender %} | ||
{% endif %} | ||
<!-- author stats info --> | ||
{% if user == tender.author %} | ||
{% include "tenders/_detail_side_infos_author.html" %} | ||
{% else %} | ||
{% if not tender.deadline_date_outdated %} | ||
<!-- tender basic view stat --> | ||
{% if tender.siae_email_link_click_date_or_detail_display_date_count > 0 %} | ||
<div class="alert alert-warning mt-3 mt-lg-0" role="alert"> | ||
<p class="mb-0 fs-sm"> | ||
Déjà {{ tender.siae_email_link_click_date_or_detail_display_date_count }} prestataire{{ tender.siae_email_link_click_date_or_detail_display_date_count|pluralize }} inclusif{{ tender.siae_email_link_click_date_or_detail_display_date_count|pluralize }} | ||
{{ tender.siae_email_link_click_date_or_detail_display_date_count|pluralize:"a,ont" }} vu le besoin de ce client. | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% if not tender.response_is_anonymous %} | ||
<!-- logged in user --> | ||
{% if user.is_authenticated %} | ||
<!-- partner info --> | ||
{% if user.kind == user.KIND_PARTNER %} | ||
{% if not user_partner_can_display_tender_contact_details %} | ||
<div class="alert alert-info" role="alert"> | ||
<p class="mb-1"> | ||
<i class="ri-lightbulb-line ri-lg"></i> | ||
<strong>Comment contacter le client ?</strong> | ||
</p> | ||
<p class="mb-0"> | ||
Contactez Sofiane via | ||
<a href="mailto:{{ TEAM_CONTACT_EMAIL }}?subject=Demande d'information pour {{ tender.title }}">{{ TEAM_CONTACT_EMAIL }}</a> | ||
pour être mis en relation avec le client. | ||
</p> | ||
</div> | ||
{% endif %} | ||
<!-- siae info & actions --> | ||
{% elif user.kind == user.KIND_SIAE %} | ||
{% if not user.has_siae %} | ||
<div class="alert alert-info" role="alert"> | ||
<p class="mb-1"> | ||
<i class="ri-lightbulb-line ri-lg"></i> | ||
<strong>Comment contacter le client ?</strong> | ||
</p> | ||
<p class="mb-0"> | ||
Pour accéder aux coordonnées du client, veuillez d'abord vous <a id="add-siae-btn" href="{% url 'dashboard_siaes:siae_search_by_siret' %}">rattacher à votre structure</a>. | ||
</p> | ||
<p> | ||
Besoin d'aide ? contacter le support via le chat en ligne qui se trouve en bas à droite. | ||
</p> | ||
</div> | ||
{% 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 %} | ||
{% include "tenders/_detail_cta_not_interested.html" with tender=tender user_can_click=True %} | ||
{% endif %} | ||
{% endif %} | ||
<!-- anonymous user but siae_id in url --> | ||
{% elif siae_id %} | ||
{% if not siae_has_detail_contact_click_date %} | ||
{% include "tenders/_detail_cta.html" with tender=tender user_can_click=True siae_id=siae_id %} | ||
{% include "tenders/_detail_cta_cocontracting.html" with tender=tender siae_id=siae_id %} | ||
{% include "tenders/_detail_cta_not_interested.html" with tender=tender siae_id=siae_id %} | ||
{% else %} | ||
{% include "tenders/_detail_contact.html" with tender=tender %} | ||
{% endif %} | ||
{% endif %} | ||
<!-- anonymous tender --> | ||
{% else %} | ||
{% if user.is_authenticated or siae_id %} | ||
{% if not siae_has_detail_contact_click_date %} | ||
{% include "tenders/_detail_cta.html" with tender=tender user_can_click=True siae_id=siae_id tender_response_is_anonymous=True %} | ||
{% else %} | ||
{% include "tenders/_detail_success_contact.html" %} | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} | ||
<!-- anonymous user: action buttons show login modal --> | ||
{% if not user.is_authenticated and not siae_id %} | ||
{% include "tenders/_detail_cta.html" with tender=tender user_can_click=False %} | ||
{% include "tenders/_detail_cta_not_interested.html" with tender=tender user_can_click=False %} | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} |