Commit | Line | Data |
---|---|---|
34947443 AJ |
1 | {% load pagination_tags %} |
2 | {% load sorting_tags %} | |
3 | ||
4 | {% autosort chercheurs %} | |
5 | {% autopaginate chercheurs 20 %} | |
6 | ||
8632e357 | 7 | <h5>Recherche</h5> |
34947443 | 8 | |
8632e357 | 9 | <form method="get" action="" class="contenu-wrapper"> |
10 | <table id="repertoire_recherche"> | |
13146d99 | 11 | {{repertoire_form.as_table}} |
8632e357 | 12 | <tr><td colspan="2" class="Lib"><input type="submit" class="bouton" value="Rechercher" /></td></tr> |
13 | </table> | |
13146d99 AJ |
14 | </form> |
15 | ||
8632e357 | 16 | <h5>Résultats : {{nb_chercheurs}} chercheurs correspondant à votre recherche</h5> |
13146d99 | 17 | |
13146d99 | 18 | <div class="centre">{% paginate %}</div> |
8632e357 | 19 | <div class="contenu-wrapper"> |
20 | <table id="repertoire"> | |
21 | <tr> | |
22 | <th>{% anchor personne__nom Nom %}</th> | |
23 | <th>{% anchor etablissement__nom Établissement %}</th> | |
24 | <th>{% anchor etablissement__pays Localisation %}</th> | |
25 | </tr> | |
26 | {% for chercheur in chercheurs %} | |
27 | <tr class="{% cycle 'odd' 'notodd' %}"> | |
28 | <td><a href="{% url chercheurs.views.retrieve chercheur.id %}">{{ chercheur }}</a></td> | |
29 | <td>{% firstof chercheur.etablissement chercheur.etablissement_autre_nom %}</td> | |
30 | <td>{% firstof chercheur.etablissement.pays chercheur.etablissement_autre_pays %}</td> | |
31 | </tr> | |
32 | {% endfor %} | |
33 | </table> | |
9f7c169e | 34 | </div> |
8632e357 | 35 | <div class="centre">{% paginate %}</div> |
36 |