forked from DGNum/gestioCOF
Nouvelles couleurs, Plus de templates, Calendrier (sommaire)
This commit is contained in:
parent
f5778fed2a
commit
53658589f8
11 changed files with 330 additions and 44 deletions
|
@ -24,7 +24,11 @@
|
|||
</header>
|
||||
|
||||
<div class="container">
|
||||
{% block content %}{% endblock %}
|
||||
{% block superaside %}{% endblock %}
|
||||
|
||||
<div class="content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% wagtailuserbar %}
|
||||
</body>
|
||||
|
|
9
gestioncof/cms/templates/cofcms/base_aside.html
Normal file
9
gestioncof/cms/templates/cofcms/base_aside.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{% extends "cofcms/base.html" %}
|
||||
|
||||
{% block superaside %}
|
||||
<div class="aside-wrap">
|
||||
<div class="aside">
|
||||
{% block aside %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
14
gestioncof/cms/templates/cofcms/calendar.html
Normal file
14
gestioncof/cms/templates/cofcms/calendar.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<table class="calendar">
|
||||
<tbody>
|
||||
<tr><th>L</th><th>M</th><th>M</th><th>J</th><th>V</th><th>S</th><th>D</th></tr>
|
||||
{% for week in weeks %}
|
||||
<tr>
|
||||
{% for day in week %}
|
||||
<td class="{{ day.class }}">
|
||||
{% if day.events %}<a href="javascript:void(0)">{{ day.day }}</a>{% else %}{{ day.day }}{% endif %}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
|
@ -1,6 +1,10 @@
|
|||
{% extends "cofcms/base.html" %}
|
||||
{% extends "cofcms/base_aside.html" %}
|
||||
{% load wagtailimages_tags cofcms_tags %}
|
||||
|
||||
{% block aside %}
|
||||
{% calendar %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="intro">
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
{% extends "cofcms/base.html" %}
|
||||
{% extends "cofcms/base_aside.html" %}
|
||||
{% load wagtailimages_tags cofcms_tags %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
{% block content %}
|
||||
<section class="intro">
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
|
|
@ -1,2 +1,26 @@
|
|||
{% extends "cofcms/base.html" %}
|
||||
{% extends "cofcms/base_aside.html" %}
|
||||
{% load static cofcms_tags wagtailimages_tags %}
|
||||
|
||||
{% block aside %}
|
||||
{% calendar %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="intro">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<div>{{ page.introduction|safe }}</div>
|
||||
</section>
|
||||
|
||||
<section class="actuhome">
|
||||
{% for actu in page.actus %}
|
||||
{% if actu.is_event %}
|
||||
<article class="actu">
|
||||
<h2>{{ actu.title }}</h2>
|
||||
{% if actu.image %}
|
||||
{% image actu.image fill-400x200 class="actu-img" %}
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue