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> |
18 | {{ search_form.as_table }} | |
19 | <tr><th></th><td><input type="submit" value="Rechercher" /></td></tr> | |
20 | </table> | |
21 | </form> | |
22 | ||
cf4091c8 | 23 | <h2>Résultats</h2> |
fdcf5874 EMS |
24 | <div class="sous-titre"> |
25 | {{ nb_resultats }} ressources correspondant à votre recherche | |
7ed3ee8f | 26 | (<a href="{% url rss_ressources %}?{{ request.META.QUERY_STRING }}">Fil RSS</a>) |
fdcf5874 EMS |
27 | {% if user.is_authenticated %} |
28 | (<a href="{% url sauvegarder_recherche "ressources" %}?{{ request.META.QUERY_STRING }}">Sauvegarder cette recherche</a>) | |
29 | {% endif %} | |
30 | </div> | |
8632e357 | 31 | |
cf4091c8 | 32 | <div class="pagination">{% paginate %}</div> |
8632e357 | 33 | {% for ressource in ressources %} |
34 | {% include "savoirs/ressource_resultat.html" %} | |
35 | {% empty %} | |
36 | <div class="resultatRecherche"> | |
37 | <h2>Aucun résultat trouvé</h2> | |
38 | </div> | |
39 | {% endfor %} | |
cf4091c8 | 40 | <div class="pagination">{% paginate %}</div> |
89d7cab5 | 41 | |
588d6b93 | 42 | {% endblock %} |