Commit | Line | Data |
---|---|---|
d15017b2 CR |
1 | {% extends "container_base.html" %} |
2 | ||
3 | {% block contenu %} | |
4 | <script> | |
a008c7e5 CR |
5 | $(document).ready(function(){ |
6 | makePageLinks ({{ page|default:0 }}, {{ data.last_page|default:0 }}, | |
7 | '{{ data.more_link }}'); | |
8 | }); | |
9 | ||
10 | {% if user.is_authenticated %} | |
11 | function showEditModal (uri) { | |
12 | $('#jsonsource').load ('{% url savoirs.views.json_get %}?uri='+uri, | |
13 | function() { | |
14 | __jf = new JSONForm ('schema', 'mainform', 'jsonsource'); | |
15 | __jf.setup (); | |
16 | $('#edit-form').dialog({height: 400, width: 650, modal: true}); | |
d15017b2 | 17 | }); |
a008c7e5 CR |
18 | } |
19 | {% endif %} | |
5ecd5424 | 20 | |
d15017b2 | 21 | |
a008c7e5 | 22 | </script> |
d15017b2 | 23 | |
a008c7e5 | 24 | <div class="zone-texte"> |
a2c6bb72 EMS |
25 | {% if ressources %} |
26 | <h4>Ressources correspondant à « {{ q }} » ({{ ressources|length }} sur {{ total_ressources }}):</h4> | |
0b72ebef EMS |
27 | {% for ressource in ressources %} |
28 | {% include "savoirs/ressource_resultat.html" %} | |
a008c7e5 | 29 | {% endfor %} |
7d07a79f | 30 | {% ifnotequal ressources|length total_ressources %} |
0cbedca8 | 31 | <p><a href="{% url savoirs.views.ressource_index %}?q={{ q|urlencode }}">Toutes les {{ total_ressources }} ressources correspondant à « {{ q }} »</a></p> |
7d07a79f | 32 | {% endifnotequal %} |
a2c6bb72 | 33 | {% endif %} |
0cbedca8 | 34 | |
a2c6bb72 EMS |
35 | {% if actualites %} |
36 | <h4>Actualités correspondant à « {{ q }} » ({{ actualites|length }} sur {{ total_actualites }}):</h4> | |
0cbedca8 EMS |
37 | {% for actualite in actualites %} |
38 | {% include "savoirs/actualite_resultat.html" %} | |
39 | {% endfor %} | |
7d07a79f | 40 | {% ifnotequal actualites|length total_actualites %} |
0cbedca8 | 41 | <p><a href="{% url savoirs.views.actualite_index %}?q={{ q|urlencode }}">Toutes les {{ total_ressources }} actualités correspondant à « {{ q }} »</a></p> |
7d07a79f | 42 | {% endifnotequal %} |
a2c6bb72 | 43 | {% endif %} |
7d07a79f | 44 | |
a2c6bb72 EMS |
45 | {% if evenements %} |
46 | <h4>Événements correspondant à « {{ q }} » ({{ evenements|length }} sur {{ total_evenements }}):</h4> | |
7d07a79f EMS |
47 | {% for evenement in evenements %} |
48 | {% include "savoirs/evenement_resultat.html" %} | |
49 | {% endfor %} | |
50 | {% ifnotequal evenements|length total_evenements %} | |
51 | <p><a href="{% url savoirs.views.evenement_index %}?q={{ q|urlencode }}">Tous les {{ total_evenements }} événements correspondant à « {{ q }} »</a></p> | |
52 | {% endifnotequal %} | |
a2c6bb72 | 53 | {% endif %} |
7d07a79f | 54 | |
a2c6bb72 EMS |
55 | {% if chercheurs %} |
56 | <h4>Chercheurs correspondant à « {{ q }} » ({{ chercheurs|length }} sur {{ total_chercheurs }}):</h4> | |
57 | <ul> | |
58 | {% for chercheur in chercheurs %} | |
59 | <li><a href="{% url chercheurs.views.retrieve chercheur.id %}">{{ chercheur.personne.prenom }} {{ chercheur.personne.nom }}</a></li> | |
60 | {% endfor %} | |
61 | </ul> | |
62 | {% endif %} | |
63 | ||
64 | {% if not ressources and not actualites and not evenements and not chercheurs %} | |
65 | <h4>Aucune ressource ne correspond à « {{ q }} »</h4> | |
7d07a79f | 66 | <p><a href="{% url savoirs.views.index %}">Retour à la page d'accueil</a></p> |
a2c6bb72 | 67 | {% endif %} |
a008c7e5 | 68 | </div> |
a008c7e5 CR |
69 | |
70 | {% if user.is_authenticated %} | |
71 | {% include "savoirs/editor.html" %} | |
72 | {% endif %} | |
73 | ||
74 | {% endblock %} |