Commit | Line | Data |
---|---|---|
588d6b93 | 1 | {% extends "container_base.html" %} |
2 | ||
2e7bc859 | 3 | {% load pagination_tags %} |
2e7bc859 | 4 | |
588d6b93 | 5 | {% block contenu %} |
e7876b72 | 6 | {% autopaginate ressources 15 %} |
8632e357 | 7 | |
2af3293d EMS |
8 | <ul class="actions"> |
9 | <li><a href="{% url aide %}#ressources">Aide</a></li> | |
10 | </ul> | |
11 | ||
f09bc1c6 | 12 | {{ entete|safe }} |
8632e357 | 13 | |
d57ca08f | 14 | <h2>Rechercher</h2> |
8632e357 | 15 | |
8baa2a56 | 16 | <form action="" method="get"> |
8632e357 | 17 | <table> |
428ae53e PP |
18 | {% with search_form as form %} |
19 | {% include "render_search_form.html" %} | |
20 | {% endwith %} | |
8632e357 | 21 | <tr><th></th><td><input type="submit" value="Rechercher" /></td></tr> |
22 | </table> | |
23 | </form> | |
24 | ||
cf4091c8 | 25 | <h2>Résultats</h2> |
fdcf5874 EMS |
26 | <div class="sous-titre"> |
27 | {{ nb_resultats }} ressources correspondant à votre recherche | |
7ed3ee8f | 28 | (<a href="{% url rss_ressources %}?{{ request.META.QUERY_STRING }}">Fil RSS</a>) |
fdcf5874 EMS |
29 | {% if user.is_authenticated %} |
30 | (<a href="{% url sauvegarder_recherche "ressources" %}?{{ request.META.QUERY_STRING }}">Sauvegarder cette recherche</a>) | |
31 | {% endif %} | |
32 | </div> | |
8632e357 | 33 | |
cf4091c8 | 34 | <div class="pagination">{% paginate %}</div> |
8632e357 | 35 | {% for ressource in ressources %} |
36 | {% include "savoirs/ressource_resultat.html" %} | |
37 | {% empty %} | |
38 | <div class="resultatRecherche"> | |
39 | <h2>Aucun résultat trouvé</h2> | |
40 | </div> | |
41 | {% endfor %} | |
cf4091c8 | 42 | <div class="pagination">{% paginate %}</div> |
89d7cab5 | 43 | |
588d6b93 | 44 | {% endblock %} |