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 | |
0b72ebef | 24 | {% if ressources %} |
0cbedca8 | 25 | <h4>Ressources correspondant à « {{ q }} » ({{ ressources|length }} sur {{ total_ressources }}):</h4> |
a008c7e5 | 26 | <div class="zone-texte"> |
0b72ebef EMS |
27 | {% for ressource in ressources %} |
28 | {% include "savoirs/ressource_resultat.html" %} | |
a008c7e5 | 29 | {% endfor %} |
0cbedca8 EMS |
30 | <p><a href="{% url savoirs.views.ressource_index %}?q={{ q|urlencode }}">Toutes les {{ total_ressources }} ressources correspondant à « {{ q }} »</a></p> |
31 | </div> | |
32 | {% endif %} | |
33 | ||
34 | {% if actualites %} | |
35 | <h4>Actualités correspondant à « {{ q }} » ({{ actualites|length }} sur {{ total_actualites }}):</h4> | |
36 | <div class="zone-texte"> | |
37 | {% for actualite in actualites %} | |
38 | {% include "savoirs/actualite_resultat.html" %} | |
39 | {% endfor %} | |
40 | <p><a href="{% url savoirs.views.actualite_index %}?q={{ q|urlencode }}">Toutes les {{ total_ressources }} actualités correspondant à « {{ q }} »</a></p> | |
a008c7e5 | 41 | </div> |
0b72ebef | 42 | {% endif %} |
a008c7e5 CR |
43 | |
44 | {% if user.is_authenticated %} | |
45 | {% include "savoirs/editor.html" %} | |
46 | {% endif %} | |
47 | ||
48 | {% endblock %} |