2017-08-20 00:39:19 +02:00
|
|
|
{% extends "cofcms/base_aside.html" %}
|
2018-01-28 23:44:48 +01:00
|
|
|
{% load wagtailimages_tags cofcms_tags wagtailcore_tags static i18n %}
|
|
|
|
|
|
|
|
{% 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>
|
2018-01-28 23:44:48 +01:00
|
|
|
<script src="{% static "cofcms/js/calendar.js" %}"></script>
|
|
|
|
{% endblock %}
|
2017-08-19 01:32:26 +02:00
|
|
|
|
2020-03-29 16:11:02 +02:00
|
|
|
{% block aside_title %}{% trans "Calendrier" %}{% endblock %}
|
2017-08-20 00:39:19 +02:00
|
|
|
{% block aside %}
|
2018-01-28 23:44:48 +01:00
|
|
|
<div id="calendar-wrap">
|
|
|
|
{% calendar %}
|
|
|
|
</div>
|
2017-08-20 00:39:19 +02:00
|
|
|
{% 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="actulist">
|
2018-01-20 19:33:50 +01:00
|
|
|
{% if actus.has_previous %}
|
2020-03-29 16:11:02 +02:00
|
|
|
<a class="block prev-actus" href="?page={{ actus.previous_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus récentes" %}</a>
|
2018-01-20 19:33:50 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if actus.has_next %}
|
2020-03-29 16:11:02 +02:00
|
|
|
<a class="block next-actus" href="?page={{ actus.next_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus anciennes" %}</a>
|
2018-01-20 19:33:50 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2017-08-19 01:32:26 +02:00
|
|
|
{% for actu in page.actus %}
|
|
|
|
<article class="actu">
|
2017-10-10 11:22:02 +02:00
|
|
|
<div class="actu-image" {% if actu.image %}{% image actu.image fill-400x200 as img %}style="background-image:url('{{ img.url }}');"{% endif %}></div>
|
|
|
|
<div class="actu-infos">
|
|
|
|
<h2><a href="{% pageurl actu %}">{{ actu.title }}</a></h2>
|
|
|
|
{% if actu.is_event %}
|
2018-10-14 15:50:55 +02:00
|
|
|
<p><span class="actu-dates">{{ actu|dates|capfirst }}</span><br />{{ actu.chapo }}</p>
|
2017-10-10 11:22:02 +02:00
|
|
|
{% else %}
|
2018-01-22 21:24:20 +01:00
|
|
|
{{ actu.body|safe|truncatewords_html:15 }}
|
2017-10-10 11:22:02 +02:00
|
|
|
{% endif %}
|
2020-03-29 16:11:02 +02:00
|
|
|
<a href="{% pageurl actu %}">{% trans "Lire plus" %} ></a>
|
2017-10-10 11:22:02 +02:00
|
|
|
</div>
|
2017-08-19 01:32:26 +02:00
|
|
|
</article>
|
|
|
|
{% endfor %}
|
2018-01-20 19:33:50 +01:00
|
|
|
|
|
|
|
{% if actus.has_previous %}
|
2020-03-29 16:11:02 +02:00
|
|
|
<a class="block prev-actus" href="?page={{ actus.previous_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus récentes" %}</a>
|
2018-01-20 19:33:50 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if actus.has_next %}
|
2020-03-29 16:11:02 +02:00
|
|
|
<a class="block next-actus" href="?page={{ actus.next_page_number }}{% for key,value in request.GET.items %}{% ifnotequal key 'page' %}&{{ key }}={{ value }}{% endifnotequal %}{% endfor %}">{% trans "Actualités plus anciennes" %}</a>
|
2018-01-20 19:33:50 +01:00
|
|
|
{% endif %}
|
2017-08-19 01:32:26 +02:00
|
|
|
</section>
|
|
|
|
{% endblock %}
|