From b3cd471bedbc7273eeed2813ab924f1ac392b61f Mon Sep 17 00:00:00 2001
From: divinatus <milykim@hotmail.fr>
Date: Thu, 14 Sep 2023 10:18:10 +0200
Subject: [PATCH] =?UTF-8?q?Ajout=20message=20quand=20aucun=20r=C3=A9sultat?=
 =?UTF-8?q?=20de=20recherche=20trouv=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 design_system_admin/css/plugin-dse.css |  8 +-------
 design_system_admin/recherche.html     | 20 +++++++++++++++++---
 2 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/design_system_admin/css/plugin-dse.css b/design_system_admin/css/plugin-dse.css
index 48da822..5c6386b 100644
--- a/design_system_admin/css/plugin-dse.css
+++ b/design_system_admin/css/plugin-dse.css
@@ -177,7 +177,7 @@ right: 2rem;
 #informations-footer a, .fr-footer__bottom-copy a{
   font-size: 0.8rem;
 }
-.fr-footer__bottom-copy * {
+.fr-footer__bottom-copy *, .strong {
     font-weight: bold;
 }
 .external_link::after {
@@ -667,10 +667,4 @@ background-size: var(--underline-hover-width) 0.125em, var(--underline-idle-widt
 
 .fr-header__operator{
   max-width: 11rem;
-}
-.prev [rel="prev"]::before{
-  content:"< ";
-}
-.next [rel="next"]::after{
-   content:" >";
 }
\ No newline at end of file
diff --git a/design_system_admin/recherche.html b/design_system_admin/recherche.html
index d1cdc73..e8c8810 100644
--- a/design_system_admin/recherche.html
+++ b/design_system_admin/recherche.html
@@ -28,14 +28,15 @@
                             </form>
                         </div>
                     </div>
+                    #SET{nbrresultats, 0}
                     <ul style="list-style: none;"><li>
                     <B_search>
-                        <h2>il y a #TOTAL_BOUCLE [réponse(#GRAND_TOTAL|singulier_ou_pluriel{' ', s})] à votre demande</h2>
+                        #SET{nbrresultats, #TOTAL_BOUCLE}
+                        <h2>il y a #GET{nbrresultats}&nbsp;[réponse(#GRAND_TOTAL|singulier_ou_pluriel{' ', s})] à votre demande</h2>
                         <BOUCLE_search(ARTICLES){recherche}> #REM </BOUCLE_search>
                     </B_search>
                     </li><li style="text-align: end;">Nombre de résultats par page : #CONFIG_VALUE{elements_recherche}</li></ul>
-                    <B_recherche>
-                        
+                    <B_recherche>                       
                         
                         <ul class="recherche-article">
                             <li>
@@ -73,6 +74,19 @@
                                 </div>
                             </li>
                             </B_recherche>
+                            <div class="noresult fr-mt-3v">
+                                <span class="fr-icon-search-line" aria-hidden="true"></span>&nbsp;<span class="strong">Aucun résultat</span>
+                                <div class="msg_noresult fr-mt-3v">
+                                    <p>Nous sommes désolés, mais votre recherche n'a donné aucun résultat. Voici quelques suggestions pour améliorer votre recherche :</p>
+                                    <ul>
+                                        <li><span class="strong">Vérifiez l'orthographe</span> : Assurez-vous que tous les mots sont correctement orthographiés.</li>
+                                        <li><span class="strong">Utilisez des mots-clés différents</span> : Essayez avec des termes différents ou plus généraux.</li>
+                                        <li><span class="strong">Éliminez les filtres</span> : Si vous avez appliqué des filtres de recherche, essayez de les enlever pour élargir votre recherche.</li>
+                                        <li><span class="strong">Élargissez la zone géographique</span> : Si votre recherche est limitée à une certaine région, essayez d'élargir la zone.</li>
+                                    </ul>
+                                    <p>Vous pouvez également revenir à la page d'accueil ou parcourir les différentes catégories pour trouver ce que vous cherchez.</p>
+                                </div>
+                            <//B_recherche>
                                       
                 </div>
             </div>
-- 
GitLab