2017-08-20 00:39:19 +02:00
|
|
|
{% extends "cofcms/base_aside.html" %}
|
2017-08-22 00:58:18 +02:00
|
|
|
{% load wagtailimages_tags cofcms_tags static %}
|
2017-08-19 01:32:26 +02:00
|
|
|
|
2017-08-22 00:58:18 +02:00
|
|
|
{% block extra_head %}
|
|
|
|
{{ block.super }}
|
|
|
|
<script src="{% static "js/jquery.min.js" %}"></script>
|
|
|
|
<script src="{% static "cofcms/js/script.js" %}"></script>
|
|
|
|
{% endblock %}
|
2017-08-20 00:39:19 +02:00
|
|
|
{% block aside %}
|
|
|
|
<h2>Accès rapide</h2>
|
|
|
|
<ul>
|
|
|
|
{% 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>
|
|
|
|
<div>{{ page.introduction|safe }}</div>
|
|
|
|
</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>
|
2017-08-19 01:32:26 +02:00
|
|
|
<div class="desc">{{ entry.body|safe }}</div>
|
|
|
|
{% 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>
|
|
|
|
{% else %}
|
2017-08-22 00:58:18 +02:00
|
|
|
{{ block.value.texte }} : <button data-mref="{{ block.value.email|obfuscate_mail }}" class="facteur">Afficher l'adresse mail</a>
|
2017-08-19 01:32:26 +02:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</article>
|
|
|
|
{% endfor %}
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|