-
-
-
- {% if events %}
- {% for event in events %}
- {% include "agenda_culturel/single-event/event-in-list-by-day-inc.html" with event=event filter=filter %}
- {% endfor %}
- {% else %}
-
- {% if filter.is_active %}
- Il n'y a pas d'événement prévu à cette date correspondant au filtre sélectionné.
+ {% if events %}
+ {% for event in events %}
+ {% include "agenda_culturel/single-event/event-in-list-by-day-inc.html" with event=event filter=filter %}
+ {% endfor %}
{% else %}
- Il n'y a pas d'événement prévu à cette date.
+
+ {% if filter.is_active %}
+ Il n'y a pas d'événement prévu à cette date correspondant au filtre sélectionné.
+ {% else %}
+ Il n'y a pas d'événement prévu à cette date.
+ {% endif %}
+
{% endif %}
-
- {% endif %}
-
- Toute la semaine
-
+
+
+
+
+
+
+
{% endblock %}
\ No newline at end of file
diff --git a/src/agenda_culturel/templates/agenda_culturel/page-event.html b/src/agenda_culturel/templates/agenda_culturel/page-event.html
index 05e8303..db80e83 100644
--- a/src/agenda_culturel/templates/agenda_culturel/page-event.html
+++ b/src/agenda_culturel/templates/agenda_culturel/page-event.html
@@ -3,6 +3,8 @@
{% block title %}{{ object.title }}{% endblock %}
{% load cat_extra %}
+{% load utils_extra %}
+
{% block entete_header %}
{% css_categories %}
{% endblock %}
@@ -10,6 +12,28 @@
{% block content %}
-{% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %}
+
+
+ {% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %}
+
+
+
+
{% endblock %}
\ No newline at end of file
diff --git a/src/agenda_culturel/templatetags/cat_extra.py b/src/agenda_culturel/templatetags/cat_extra.py
index 239af6a..06a5024 100644
--- a/src/agenda_culturel/templatetags/cat_extra.py
+++ b/src/agenda_culturel/templatetags/cat_extra.py
@@ -89,16 +89,21 @@ def css_categories():
return mark_safe(result)
@register.filter
-def small_cat(category, url=None, contrast=True):
+def small_cat(category, url=None, contrast=True, selected=True):
name = Category.default_name if category is None else category.name
css_class = Category.default_css_class if category is None else category.css_class()
class_contrast = " contrast" if contrast else ""
+ class_selected = " selected" if selected else ""
if url is None:
- return mark_safe(' ' + name + "")
+ return mark_safe(' ' + name + "")
else:
- return mark_safe(' ' + name + "")
+ return mark_safe(' ' + name + "")
+
+@register.filter
+def small_cat_no_selected(category, url=None):
+ return small_cat(category, url=url, selected=False)
@register.filter
def circle_cat(category):