Plus de templates, plus joli
This commit is contained in:
parent
09e63bf00c
commit
7853987ebb
8 changed files with 269 additions and 70 deletions
17
gestioncof/cms/templates/cofcms/cof_actu_event_page.html
Normal file
17
gestioncof/cms/templates/cofcms/cof_actu_event_page.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% extends "cofcms/base.html" %}
|
||||
{% load wagtailimages_tags cofcms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<section class="intro">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p class="date">A lieu {{ page.dates }}</p>
|
||||
<p>{{ page.chapo }}</p>
|
||||
</section>
|
||||
|
||||
<section class="pagecontent">
|
||||
{% image page.image width-700 %}
|
||||
<article>
|
||||
{{ page.body|safe }}
|
||||
</article>
|
||||
</section>
|
||||
{% endblock %}
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "cofcms/base_aside.html" %}
|
||||
{% load wagtailimages_tags cofcms_tags %}
|
||||
{% load wagtailimages_tags cofcms_tags wagtailcore_tags %}
|
||||
|
||||
{% block aside %}
|
||||
{% calendar %}
|
||||
|
@ -14,8 +14,13 @@
|
|||
<section class="actulist">
|
||||
{% for actu in page.actus %}
|
||||
<article class="actu">
|
||||
<h2>{{ actu.title }}</h2>
|
||||
{{ actu.body|safe }}
|
||||
<h2><a href="{% pageurl actu %}">{{ actu.title }}</a></h2>
|
||||
{% if actu.is_event %}
|
||||
<p>{{ actu.chapo }}</p>
|
||||
{% else %}
|
||||
{{ actu.body|safe|truncatewords_html:25 }}
|
||||
{% endif %}
|
||||
<a href="{% pageurl actu %}">Lire plus ></a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
|
16
gestioncof/cms/templates/cofcms/cof_actu_page.html
Normal file
16
gestioncof/cms/templates/cofcms/cof_actu_page.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends "cofcms/base.html" %}
|
||||
{% load wagtailimages_tags cofcms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<section class="intro">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p class="date">Publié le {{ page.date }}</p>
|
||||
</section>
|
||||
|
||||
<section class="pagecontent">
|
||||
{% image page.image width-700 %}
|
||||
<article>
|
||||
{{ page.body|safe }}
|
||||
</article>
|
||||
</section>
|
||||
{% endblock %}
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "cofcms/base_aside.html" %}
|
||||
{% load static cofcms_tags wagtailimages_tags %}
|
||||
{% load static cofcms_tags wagtailimages_tags i18n wagtailcore_tags %}
|
||||
|
||||
{% block aside %}
|
||||
{% calendar %}
|
||||
|
@ -14,15 +14,13 @@
|
|||
<section class="actuhome">
|
||||
{% for actu in page.actus %}
|
||||
<article class="actu">
|
||||
<div class="actu-header">
|
||||
{% if actu.image %}
|
||||
{% image actu.image fill-400x200 class="actu-img" %}
|
||||
{% endif %}
|
||||
<h2>{{ actu.title }}</h2>
|
||||
<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>
|
||||
</div>
|
||||
{% if actu.is_event %}
|
||||
<div class="actu-misc">
|
||||
<span class="actu-minical">{% mini_calendar actu %}</span>{{ actu.dates }}
|
||||
{% get_current_language as curlang %}
|
||||
<span class="actu-minical">{% mini_calendar actu curlang %}</span><span class="actu-dates">{{ actu.dates }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue