diff --git a/src/agenda_culturel/static/css/style.css b/src/agenda_culturel/static/css/style.css index 7f1e3cd..fdc30d7 100644 --- a/src/agenda_culturel/static/css/style.css +++ b/src/agenda_culturel/static/css/style.css @@ -34,7 +34,7 @@ span.cat, span.mode { } .mode { - background-color: #999; + background-color: #CCC; } a.mode:hover { @@ -63,4 +63,23 @@ a.mode:hover { } .cat a.close:hover { background: #fff; +} + +.small-cat { + font-weight: bold; + text-decoration: none; + font-size: 80%; + display: inline-block; + padding: 0.1em 0.8em; + border-radius: .4em; +} + +.warning-simple { + font-style: italic; +} + +.warning { + background: #EEE; + padding: 1em; + border-radius: 1.5em; } \ No newline at end of file diff --git a/src/agenda_culturel/templates/agenda_culturel/page-events.html b/src/agenda_culturel/templates/agenda_culturel/page-events.html index d944a28..2befe26 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-events.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-events.html @@ -5,6 +5,7 @@ {% load i18n %} {% load cat_extra %} +{% load event_extra %} {% block entete_header %} {% css_categories %} @@ -43,6 +44,33 @@ {% else %} {{ selected_mode | capfirst }} {% endif %} + + {% if events %} + {% for date in dates %} + +

{{ date |date:"DATE_FORMAT" }}

+ {% with events_date=events|in_date:date %} + {% if events_date %} + + {% for event in events_date %} +
  • {% if category %} + {{ event.category | small_cat }} + {% else %} + {% url 'view_mode_cat' selected_mode.name event.category.pk as url_cat %} + {{ event.category | small_cat:url_cat }} + {% endif %} {{ event.title }} +
  • + {% endfor %} +
    + {% else %} +

    Aucun événement ce jour-là.

    + {% endif %} + {% endwith %} + {% endfor %} + + {% else %} +

    Aucun événement ne correspond à la recherche.

    + {% endif %} {% endblock %}