2017-08-20 00:39:19 +02:00
|
|
|
{% extends "cofcms/base_aside.html" %}
|
2018-01-28 23:44:48 +01:00
|
|
|
{% load static cofcms_tags wagtailimages_tags wagtailroutablepage_tags i18n wagtailcore_tags %}
|
|
|
|
|
|
|
|
|
|
|
|
{% 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 "Agenda" %}{% 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 %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<section class="intro">
|
|
|
|
<h1>{{ page.title }}</h1>
|
|
|
|
<div>{{ page.introduction|safe }}</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="actuhome">
|
|
|
|
{% for actu in page.actus %}
|
2017-08-22 00:58:18 +02:00
|
|
|
<article class="actu">
|
2017-08-26 18:05:20 +02:00
|
|
|
<div class="actu-header" {% if actu.image %}{% image actu.image fill-400x200 as img %}style="background-image:url('{{ img.url }}');"{% endif %}>
|
|
|
|
<h2><a href="{% pageurl actu %}">{{ actu.title }}</a></h2>
|
2017-08-22 00:58:18 +02:00
|
|
|
</div>
|
2017-09-27 23:58:50 +02:00
|
|
|
<div class="actu-misc">
|
|
|
|
{% if actu.is_event %}
|
2018-10-14 15:50:55 +02:00
|
|
|
<span class="actu-minical">{% mini_calendar actu %}</span><span class="actu-dates">{{ actu|dates }}</span>
|
2017-09-27 23:58:50 +02:00
|
|
|
{% else %}
|
2018-01-22 21:24:20 +01:00
|
|
|
{{ actu.body|safe|truncatewords_html:10 }}
|
2017-09-27 23:58:50 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<a href="{% pageurl actu %}" class="actu-overlay"></a>
|
2017-08-22 00:58:18 +02:00
|
|
|
</article>
|
2017-08-20 00:39:19 +02:00
|
|
|
{% endfor %}
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|