Skip to content

Commit

Permalink
refactor: Update card_suggest_tender.html template
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Jul 31, 2024
1 parent dc3e4d0 commit 5f370af
Showing 1 changed file with 25 additions and 30 deletions.
55 changes: 25 additions & 30 deletions lemarche/templates/siaes/_card_suggest_tender.html
Original file line number Diff line number Diff line change
@@ -1,60 +1,55 @@
{% comment %} {% load static bootstrap4 %} {% endcomment %}
<div class="fr-card">
<div class="fr-card__body">
<div class="fr-card__content">
<h2 class="h3 fr-card__title">Vos sourcing et RFI sont chronophages ?</h2>
<h2>Vos sourcing et RFI sont chronophages ?</h2>
<div class="fr-card__desc">
<div class="fr-grid-row">
<div class="fr-col-md">
<p>
Confier votre sourcing ou votre RFI à notre algorithme et recevez des réponses de prestataires inclusifs en moins de 24h.
</p>
<a href="{% url 'tenders:create' %}"
id="siae-search-insert-tender-create-btn"
class="fr-btn btn-primary btn-sm btn-ico d-block d-md-inline-block mb-2">
<i class="ri-mail-send-line ri-lg"></i>&nbsp;Lancer un sourcing inversé
<a href="{% url 'tenders:create' %}" id="siae-search-insert-tender-create-btn" class="fr-btn fr-btn--icon-right fr-icon-mail-line">
Lancer un sourcing inversé
</a>
</div>
{% if current_perimeters or current_sectors %}
<div class="fr-col-md">
{% if current_perimeters %}
{% with perimeters_length=current_perimeters|length %}
<h5 class="mb-2">Lieu{{ perimeters_length|pluralize:"x" }} d'intervention</h5>
<h5 class="fr-mb-2v">Lieu{{ perimeters_length|pluralize:"x" }} d'intervention</h5>
{% for perimeter in current_perimeters %}
<span class="badge badge-base badge-outline-primary mr-1">{{ perimeter.name }}</span>
<span class="fr-badge fr-mr-1v fr-mb-1v">{{ perimeter.name }}</span>
{% if forloop.counter == 2 and perimeters_length > 2 %}
<a class="w-100 d-block text-decoration-none has-collapse-caret collapsed"
data-toggle="collapse"
href="#perimetersSearchHidden"
role="button"
aria-expanded="false"
aria-controls="perimetersSearchHidden">
Afficher les {{ perimeters_length|add:"-2" }} autres lieux d'interventions
</a>
<div id="perimetersSearchHidden" class="collapse">
<section class="fr-accordion">
<h3 class="fr-accordion__title">
<button class="fr-accordion__btn" aria-expanded="false" aria-controls="perimetersSearchHidden">Afficher les {{ perimeters_length|add:"-2" }} autres lieux d'interventions</button>
</h3>
<div class="fr-collapse" id="perimetersSearchHidden">
{% endif %}
{% if forloop.counter == perimeters_length and perimeters_length > 2 %}
</div>
</section>
{% endif %}
{% if forloop.counter == perimeters_length and perimeters_length > 2 %}</div>{% endif %}
{% endfor %}
{% endwith %}
{% endif %}
{% if current_sectors %}
{% with sectors_length=current_sectors|length %}
<h5 class="{% if current_perimeters %}mt-4{% endif %} mb-2">Secteur{{ sectors_length|pluralize }} d'activité</h5>
<h5 class="{% if current_perimeters %}fr-mt-4v{% endif %} fr-mb-2v">Secteur{{ sectors_length|pluralize }} d'activité</h5>
{% for sector in current_sectors %}
<span class="badge badge-base badge-outline-primary ml-0 mb-1">{{ sector.name|truncatechars:42 }}</span>
<span class="fr-badge fr-mr-1v fr-mb-1v">{{ sector.name|truncatechars:42 }}</span>
<br />
{% if forloop.counter == 2 and sectors_length > 2 %}
<a class="w-100 d-block text-decoration-none has-collapse-caret collapsed"
data-toggle="collapse"
href="#sectorsSearchHidden"
role="button"
aria-expanded="false"
aria-controls="sectorsSearchHidden">
Afficher les {{ sectors_length|add:"-2" }} autres secteurs
</a>
<div id="sectorsSearchHidden" class="collapse">
<section class="fr-accordion">
<h3 class="fr-accordion__title">
<button class="fr-accordion__btn" aria-expanded="false" aria-controls="sectorsSearchHidden">Afficher les {{ sectors_length|add:"-2" }} autres secteurs</button>
</h3>
<div class="fr-collapse" id="sectorsSearchHidden">
{% endif %}
{% if forloop.counter == sectors_length and sectors_length > 2 %}
</div>
</section>
{% endif %}
{% if forloop.counter == sectors_length and sectors_length > 2 %}</div>{% endif %}
{% endfor %}
{% endwith %}
{% endif %}
Expand Down

0 comments on commit 5f370af

Please sign in to comment.