-
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.
[Recherche] Répare les liens de redirection après la modale de recher…
…che avancée (#919)
- Loading branch information
Showing
2 changed files
with
57 additions
and
58 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
lemarche/templates/auth/_login_or_signup_search_advanced_modal.html
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,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> |
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 |
---|---|---|
|
@@ -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> | ||
|
@@ -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; | ||
|
@@ -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); | ||
} | ||
|
||
|