Skip to content

Commit

Permalink
first try
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Feb 8, 2024
1 parent b9c42dd commit 4a96206
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lemarche/static/itou_marche/utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@
transform: rotate(360deg);
}
}

.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
background-color: #fff;
color: #000;
text-align: left;
border: 1px solid #cccdd7;
border-radius: 0.25rem;
}
9 changes: 9 additions & 0 deletions lemarche/static/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ window.addEventListener('DOMContentLoaded', function () {

initModalMessages();

$('.super-badge-badge').each(function (element) {
$(this).tooltip(
{
html: true,
placement: "bottom",
title: $('#tooltip-super-badge').html()
});
});

$('.s-tabs-01__nav .nav-item').on('click', function (event) {
event.preventDefault()
let tabContent = this.parentElement.parentElement.querySelector(".tab-content");
Expand Down
1 change: 1 addition & 0 deletions lemarche/templates/dashboard/home_siae.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,6 @@ <h1 class="s-title-01__title h1"><strong>Tableau de bord</strong></h1>
{% endif %}

{% include "dashboard/_aides_territoires_section.html" with extra_class="pt-3" %}
{% include "includes/_super_siae_arguments_badge.html" %}

{% endblock %}
10 changes: 10 additions & 0 deletions lemarche/templates/includes/_super_siae_arguments_badge.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="d-none">
<div id="tooltip-super-badge">
<ul class="list-unstyled pt-1">
<li><i class="ri-check-line"></i> Fiche commerciale complète et mise à jour régulièrement</li>
<li><i class="ri-check-line"></i> Taux de réponse élevé</li>
<li><i class="ri-check-line"></i> Délai moyen de réponse élevé</li>
<li><i class="ri-check-line"></i> Coordonnées de contact à jour</li>
</ul>
</div>
</div>

0 comments on commit 4a96206

Please sign in to comment.