Commit | Line | Data |
---|---|---|
588d6b93 | 1 | {% extends "container_base.html" %} |
e9b0d630 | 2 | {% load pagination_tags %} |
e9b0d630 | 3 | {% load form_tags %} |
7020ea3d | 4 | {% load sep %} |
588d6b93 | 5 | |
6 | {% block contenu %} | |
e9b0d630 | 7 | {% autopaginate chercheurs 20 %} |
8632e357 | 8 | |
8632e357 | 9 | <ul class="actions"> |
2af3293d | 10 | <li><a href="{% url aide %}#repertoire">Aide</a></li> |
e9b0d630 | 11 | {% include "chercheurs/actions.html" %} |
8632e357 | 12 | </ul> |
13 | ||
f09bc1c6 | 14 | {{ entete|safe }} |
8632e357 | 15 | |
d57ca08f | 16 | <h2>Rechercher</h2> |
e9b0d630 | 17 | |
8baa2a56 | 18 | <form method="get" action=""> |
2e99acab EMS |
19 | <table> |
20 | {% with search_form as form %} | |
21 | {% include "render_form.html" %} | |
22 | {% endwith %} | |
e9b0d630 EMS |
23 | <tr><th></th><td><input type="submit" class="bouton" value="Rechercher" /></td></tr> |
24 | </table> | |
25 | </form> | |
26 | ||
cf4091c8 | 27 | <h2>Résultats</h2> |
fdcf5874 EMS |
28 | <div class="sous-titre"> |
29 | {{ nb_chercheurs }} chercheurs correspondant à votre recherche | |
7ed3ee8f | 30 | (<a href="{% url rss_chercheurs %}?{{ request.META.QUERY_STRING }}">Fil RSS</a>) |
fdcf5874 EMS |
31 | {% if user.is_authenticated %} |
32 | (<a href="{% url sauvegarder_recherche "chercheurs" %}?{{ request.META.QUERY_STRING }}">Sauvegarder cette recherche</a>) | |
33 | {% endif %} | |
34 | </div> | |
e9b0d630 | 35 | |
cf4091c8 | 36 | <div class="pagination">{% paginate %}</div> |
8baa2a56 EMS |
37 | <table id="repertoire"> |
38 | <tr> | |
7020ea3d EMS |
39 | <th>{% sort_link "nom" "Nom" %}</th> |
40 | <th>{% sort_link "etablissement" "Établissement" %}</th> | |
41 | <th>{% sort_link "pays" "Pays" %}</th> | |
8baa2a56 | 42 | </tr> |
e9b0d630 | 43 | {% for chercheur in chercheurs %} |
8baa2a56 EMS |
44 | <tr class="{% cycle 'odd' 'notodd' %}"> |
45 | <td><a href="{% url chercheurs.views.retrieve id=chercheur.id %}">{{ chercheur }}</a></td> | |
7020ea3d EMS |
46 | <td>{% firstof chercheur.etablissement.nom chercheur.etablissement_autre_nom %}</td> |
47 | <td>{% firstof chercheur.etablissement.pays.nom chercheur.etablissement_autre_pays.nom %}</td> | |
8baa2a56 | 48 | </tr> |
e9b0d630 | 49 | {% endfor %} |
8baa2a56 | 50 | </table> |
cf4091c8 | 51 | <div class="pagination">{% paginate %}</div> |
e9b0d630 | 52 | |
588d6b93 | 53 | {% endblock %} |