Amélioration de la mise en forme des événements
This commit is contained in:
parent
bb6bebc5a7
commit
f3d4f1fef2
@ -717,4 +717,10 @@ aside nav a.badge {
|
|||||||
|
|
||||||
.container-fluid article form .hidden {
|
.container-fluid article form .hidden {
|
||||||
display: none;
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
article article {
|
||||||
|
margin-top: 3em;
|
||||||
|
margin-bottom: 3em;
|
||||||
|
padding: 0.6em 0.2em;
|
||||||
}
|
}
|
@ -19,11 +19,11 @@
|
|||||||
</form>
|
</form>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<ul>
|
<div>
|
||||||
{% for obj in paginator_filter %}
|
{% for obj in paginator_filter %}
|
||||||
<li>{% include "agenda_culturel/single-event/event-in-flat-list-inc.html" with event=obj %}</li>
|
<article>{% include "agenda_culturel/single-event/event-in-flat-list-inc.html" with event=obj %}</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
<span>
|
<span>
|
||||||
{% if paginator_filter.has_previous %}
|
{% if paginator_filter.has_previous %}
|
||||||
|
@ -30,13 +30,13 @@
|
|||||||
{% if has_results %}
|
{% if has_results %}
|
||||||
<div id="results">
|
<div id="results">
|
||||||
<p>{{ paginator_filter.paginator.count }} événement{{paginator_filter.object_list.count | pluralize }} correspond{{paginator_filter.object_list.count | pluralize:"ent" }} à la recherche.</p>
|
<p>{{ paginator_filter.paginator.count }} événement{{paginator_filter.object_list.count | pluralize }} correspond{{paginator_filter.object_list.count | pluralize:"ent" }} à la recherche.</p>
|
||||||
<ul>
|
<div>
|
||||||
{% for obj in paginator_filter %}
|
{% for obj in paginator_filter %}
|
||||||
<li>
|
<article>
|
||||||
{% include "agenda_culturel/single-event/event-in-flat-list-inc.html" with event=obj %}
|
{% include "agenda_culturel/single-event/event-in-flat-list-inc.html" with event=obj %}
|
||||||
</li>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</div>
|
||||||
{% if paginator_filter.paginator.num_pages != 1 %}
|
{% if paginator_filter.paginator.num_pages != 1 %}
|
||||||
<footer>
|
<footer>
|
||||||
<span>
|
<span>
|
||||||
|
@ -2,14 +2,17 @@
|
|||||||
{% load cat_extra %}
|
{% load cat_extra %}
|
||||||
{% load event_extra %}
|
{% load event_extra %}
|
||||||
|
|
||||||
<p>{{ event.category | small_cat }}
|
<header>{{ event.category | small_cat }}
|
||||||
{{ event|picto_status }}
|
{{ event|picto_status }}
|
||||||
<a href="{{ event.get_absolute_url }}">
|
<a href="{{ event.get_absolute_url }}">
|
||||||
{% if event.title_hl %}{{ event.title_hl | safe }}{% else %}{{ event.title }}{% endif %}</a></p>
|
{% if event.title_hl %}{{ event.title_hl | safe }}{% else %}{{ event.title }}{% endif %}</a></p>
|
||||||
<p class="subentry-search">{% picto_from_name "calendar" %}
|
<p class="subentry-search">{% picto_from_name "calendar" %}
|
||||||
{% if event.end_day %}du{% else %}le{% endif %}
|
{% if event.end_day %}du{% else %}le{% endif %}
|
||||||
{% include "agenda_culturel/date-times-inc.html" with event=event %}
|
{% include "agenda_culturel/date-times-inc.html" with event=event %}
|
||||||
|
</header>
|
||||||
|
<p class="subentry-search"></p>
|
||||||
{% picto_from_name "map-pin" %}
|
{% picto_from_name "map-pin" %}
|
||||||
|
{% if event.location_hl %}{{ event.location_hl | safe }}{% else %}{{ event.location }}{% endif %}</p>
|
||||||
{% if event.has_recurrences %}
|
{% if event.has_recurrences %}
|
||||||
<p class="subentry-search">
|
<p class="subentry-search">
|
||||||
{% picto_from_name "repeat" %}
|
{% picto_from_name "repeat" %}
|
||||||
@ -19,7 +22,6 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if event.location_hl %}{{ event.location_hl | safe }}{% else %}{{ event.location }}{% endif %}</p>
|
|
||||||
<p class="subentry-search">
|
<p class="subentry-search">
|
||||||
{% picto_from_name "tag" %}
|
{% picto_from_name "tag" %}
|
||||||
{% for tag in event.tags %}
|
{% for tag in event.tags %}
|
||||||
@ -28,11 +30,13 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
{% if event.description_hl %}{{ event.description_hl | safe }}{% else %}{% if event.description %}{{ event.description |truncatewords:60 }}{% else %}<em>pas de description</em>{% endif %}{% endif %}
|
{% if event.description_hl %}{{ event.description_hl | safe }} [...]{% else %}{% if event.description %}{{ event.description |truncatewords:60 }}{% else %}<em>pas de description</em>{% endif %}{% endif %}
|
||||||
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<div class="buttons">
|
|
||||||
{% include "agenda_culturel/edit-buttons-inc.html" with event=event %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
<footer>
|
||||||
|
<div class="buttons">
|
||||||
|
{% include "agenda_culturel/edit-buttons-inc.html" with event=event %}
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user