2017-08-20 00:39:19 +02:00
|
|
|
{% extends "cofcms/base_aside.html" %}
|
2021-06-26 22:52:23 +02:00
|
|
|
{% load wagtailcore_tags wagtailimages_tags cofcms_tags static i18n %}
|
2017-08-19 01:32:26 +02:00
|
|
|
|
2017-08-22 00:58:18 +02:00
|
|
|
{% block extra_head %}
|
|
|
|
{{ block.super }}
|
2020-03-28 14:08:48 +01:00
|
|
|
<script src="{% static "vendor/jquery/jquery-3.3.1.min.js" %}"></script>
|
2017-08-22 00:58:18 +02:00
|
|
|
<script src="{% static "cofcms/js/script.js" %}"></script>
|
|
|
|
{% endblock %}
|
2020-03-29 16:11:02 +02:00
|
|
|
{% block aside_title %}{% trans "Accès rapide" %}{% endblock %}
|
2017-08-20 00:39:19 +02:00
|
|
|
{% block aside %}
|
2020-03-29 15:36:47 +02:00
|
|
|
<ul class="directory">
|
2017-08-20 00:39:19 +02:00
|
|
|
{% for entry in page.entries %}
|
|
|
|
<li><a href="#{{ entry.slug }}">{{ entry.title }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-08-19 01:32:26 +02:00
|
|
|
{% block content %}
|
|
|
|
<section class="intro">
|
|
|
|
<h1>{{ page.title }}</h1>
|
2021-06-26 22:52:23 +02:00
|
|
|
<div>{{ page.introduction|richtext }}</div>
|
2017-08-19 01:32:26 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="directory">
|
|
|
|
{% for entry in page.entries %}
|
|
|
|
<article class="entry" id="{{ entry.slug }}">
|
|
|
|
{% if entry.image %}
|
2017-08-22 00:58:18 +02:00
|
|
|
<div class="entry-image">{% image entry.image width-150 class="entry-img" %}</div>
|
2017-08-19 01:32:26 +02:00
|
|
|
{% endif %}
|
2017-08-22 00:58:18 +02:00
|
|
|
<h2>{{ entry.title }}</h2>
|
2021-06-26 22:52:23 +02:00
|
|
|
<div class="desc">{{ entry.body|richtext }}</div>
|
2017-08-19 01:32:26 +02:00
|
|
|
{% if entry.links %}
|
|
|
|
<ul class="links">
|
|
|
|
{% for block in entry.links %}
|
|
|
|
<li>
|
|
|
|
{% if block.block_type == "lien" %}
|
|
|
|
<a href="{{ block.value.url }}">{{ block.value.texte }}</a>
|
2020-08-29 23:15:28 +02:00
|
|
|
{% elif block.block_type == "contact" %}
|
|
|
|
<span class="label">{{ block.value.texte }} :</span> <button data-mref="{{ block.value.email|obfuscate_mail }}" class="facteur">{% trans "Afficher l'adresse mail" %}</button>
|
2017-08-19 01:32:26 +02:00
|
|
|
{% else %}
|
2020-08-29 23:15:28 +02:00
|
|
|
{% if block.value.nom %}<span class="label">{{ block.value.nom }} :</span> {% endif %}{{ block.value.texte }}
|
2017-08-19 01:32:26 +02:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</article>
|
|
|
|
{% endfor %}
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|