Skip to content

Commit

Permalink
[Recherche] Répare les liens de redirection après la modale de recher…
Browse files Browse the repository at this point in the history
…che avancée (#919)
  • Loading branch information
raphodn authored Sep 26, 2023
1 parent b451538 commit de9481a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 58 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<div class="modal fade modal-siae" id="modal_login_to_access_advanced_search" tabindex="-1" role="dialog" aria-modal="true" data-backdrop="static" data-keyboard="false" aria-labelledby="exampleModalLabel">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Pour accéder à la recherche avancée multicritères, inscrivez-vous, c'est gratuit !</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Fermer">
<i class="ri-close-line"></i>
</button>
</div>
<div class="modal-body home-content-body">
<p class="mb-4">
Vous pourrez filtrer selon les critères suivants :
</p>
<ul class="list-unstyled mb-5">
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Type de structure</span>
</li>
{% comment %}<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Certification (Qualibat, RGE, Ecocert, Imprim'vert, Bio, ESS…)</span>
</li> {% endcomment %}
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Taille d'entreprise</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Chiffre d'affaires</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Localisation</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Référence client</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Groupement</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">QPV/ZRR</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Forme juridique</span>
</li>
</ul>
<div class="text-center">
<a href="{% url 'auth:signup' %}?next=/prestataires/" id="auth-link" class="btn btn-sm btn-primary">Créer un compte</a>
</div>
<hr class="my-5" data-text="ou" />
<div class="text-center">
<p class="mb-0">Vous avez déjà un compte ?</p>
<a href="{% url 'auth:login' %}?next=/prestataires/" id="auth-link" class="btn btn-sm btn-link">Se connecter</a>
</div>
</div>
</div>
</div>
</div>
61 changes: 3 additions & 58 deletions lemarche/templates/siaes/search_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,64 +290,9 @@ <h3 class="h4">Idées reçues</h3>
{% endblock %}
{% block modals %}
{% include "auth/_login_or_signup_modal.html" %}
{% include "auth/_login_or_signup_search_advanced_modal.html" %}
{% include "favorites/_favorite_item_add_modal.html" %}
{% include "favorites/_favorite_item_remove_modal.html" %}
<div class="modal fade modal-siae" id="modal_login_to_access_advanced_search" tabindex="-1" role="dialog" aria-modal="true" data-backdrop="static" data-keyboard="false" aria-labelledby="exampleModalLabel">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Pour accéder à la recherche avancée multicritères, inscrivez-vous, c’est gratuit !</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Fermer">
<i class="ri-close-line"></i>
</button>
</div>
<div class="modal-body home-content-body">

<p class="mb-4">
Vous pourrez filtrer selon les critères suivants :
</p>
<ul class="list-unstyled mb-5">
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Type de structure</span>
</li>
{% comment %}<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Certification (Qualibat, RGE, Ecocert, Imprim’vert, Bio, ESS…)</span>
</li> {% endcomment %}
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Taille d’entreprise</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Chiffre d’affaires</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Localisation</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Référence client</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Groupement</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">QPV/ZRR</span>
</li>
<li class="d-flex mb-2">
<span class="font-weight-bold ml-2">Forme juridique</span>
</li>
</ul>
<div class="text-center">
<a href="{% url 'auth:signup' %}?next=next-params-to-replace" id="auth-link" class="btn btn-sm btn-primary">Créer un compte</a>
</div>
<hr class="my-5" data-text="ou" />
<div class="text-center">
<p class="mb-0">Vous avez déjà un compte ?</p>
<a href="{% url 'auth:login' %}?next=next-params-to-replace" id="auth-link" class="btn btn-sm btn-link">Se connecter</a>
</div>
</div>
</div>
</div>
</div>

{% endblock %}
{% block extra_js %}
<script type="text/javascript" src="{% static 'vendor/[email protected]'%}" defer></script>
Expand All @@ -360,7 +305,7 @@ <h3 class="modal-title">Pour accéder à la recherche avancée multicritères, i
{
open: {{is_advanced_search|yesno:"true,false"}},
is_authenticated: {{user.is_authenticated|yesno:"true,false"}},
is_already_opened:false,
is_already_opened: false,
toggle() {
if(!this.is_authenticated && !this.is_already_opened){
this.is_already_opened=true;
Expand All @@ -383,7 +328,7 @@ <h3 class="modal-title">Pour accéder à la recherche avancée multicritères, i
let qInput = document.getElementById('id_q');
let resetBtn = document.getElementById('form-reset-btn');

if (resetBtn){
if (resetBtn) {
resetBtn.addEventListener("click", resetForm);
}

Expand Down

0 comments on commit de9481a

Please sign in to comment.