forked from DGNum/gestioCOF
Actus et listes de clubs plus jolies et fonctionnelles, calendriers (beta)
This commit is contained in:
parent
53658589f8
commit
09e63bf00c
9 changed files with 230 additions and 18 deletions
|
@ -6,6 +6,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>{% block title %}Association des élèves de l'ENS Ulm{% endblock %}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{% static "cofcms/css/screen.css" %}"/>
|
||||
{% block extra_head %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
{% extends "cofcms/base_aside.html" %}
|
||||
{% load wagtailimages_tags cofcms_tags %}
|
||||
{% load wagtailimages_tags cofcms_tags static %}
|
||||
|
||||
{% block extra_head %}
|
||||
{{ block.super }}
|
||||
<script src="{% static "js/jquery.min.js" %}"></script>
|
||||
<script src="{% static "cofcms/js/script.js" %}"></script>
|
||||
{% endblock %}
|
||||
{% block aside %}
|
||||
<h2>Accès rapide</h2>
|
||||
<ul>
|
||||
|
@ -19,10 +24,10 @@
|
|||
<section class="directory">
|
||||
{% for entry in page.entries %}
|
||||
<article class="entry" id="{{ entry.slug }}">
|
||||
<h2>{{ entry.title }}</h2>
|
||||
{% if entry.image %}
|
||||
{% image entry.image width-400 class="entry-img" %}
|
||||
<div class="entry-image">{% image entry.image width-150 class="entry-img" %}</div>
|
||||
{% endif %}
|
||||
<h2>{{ entry.title }}</h2>
|
||||
<div class="desc">{{ entry.body|safe }}</div>
|
||||
{% if entry.links %}
|
||||
<ul class="links">
|
||||
|
@ -31,7 +36,7 @@
|
|||
{% if block.block_type == "lien" %}
|
||||
<a href="{{ block.value.url }}">{{ block.value.texte }}</a>
|
||||
{% else %}
|
||||
{{ block.value.texte }} : <button data-mref="{{ block.value.email|obfuscate_mail }}" class="mail-contact">Afficher l'adresse mail</a>
|
||||
{{ block.value.texte }} : <button data-mref="{{ block.value.email|obfuscate_mail }}" class="facteur">Afficher l'adresse mail</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
|
@ -13,14 +13,19 @@
|
|||
|
||||
<section class="actuhome">
|
||||
{% for actu in page.actus %}
|
||||
{% if actu.is_event %}
|
||||
<article class="actu">
|
||||
<h2>{{ actu.title }}</h2>
|
||||
<article class="actu">
|
||||
<div class="actu-header">
|
||||
{% if actu.image %}
|
||||
{% image actu.image fill-400x200 class="actu-img" %}
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endif %}
|
||||
<h2>{{ actu.title }}</h2>
|
||||
</div>
|
||||
{% if actu.is_event %}
|
||||
<div class="actu-misc">
|
||||
<span class="actu-minical">{% mini_calendar actu %}</span>{{ actu.dates }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
11
gestioncof/cms/templates/cofcms/mini_calendar.html
Normal file
11
gestioncof/cms/templates/cofcms/mini_calendar.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<table class="calendar mini">
|
||||
<tbody>
|
||||
<tr>
|
||||
{% for day in days %}
|
||||
<td class="{{ day.hasevent|yesno:"hasevent ," }}{{ day.today|yesno:"today," }}">
|
||||
{{ day.day }}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue