Correction: les modaux ne s'ouvraient pas pour chaque catégorie
This commit is contained in:
parent
bec3fef0bf
commit
36a1815a4e
@ -16,14 +16,14 @@
|
||||
<ul>
|
||||
{% for category, events in day.events_by_category.items %}
|
||||
<li>{{ events.0.category | circle_cat }}
|
||||
<a href="{{ daytag }}" data-target="{{ daytag }}-category-{{ category.id }}" onClick="toggleModal(event)">{{ events | length }} {{ category }}</a></li>
|
||||
<dialog id="{{ daytag }}-category-{{ category.id }}">
|
||||
<a href="{{ daytag }}" data-target="{{ daytag }}-category-{{ events.0.category.pk }}" onClick="toggleModal(event)">{{ events | length }} {{ category }}</a></li>
|
||||
<dialog id="{{ daytag }}-category-{{ events.0.category.pk }}">
|
||||
<article>
|
||||
<header>
|
||||
<a href="#{{ daytag }}-category-{{ category.id }}"
|
||||
<a href="#{{ daytag }}-category-{{ events.0.category.pk }}"
|
||||
aria-label="Fermer"
|
||||
class="close"
|
||||
data-target="{{ daytag }}-category-{{ category.id }}"
|
||||
data-target="{{ daytag }}-category-{{ events.0.category.pk }}"
|
||||
onClick="toggleModal(event)"></a>
|
||||
<h3>{{ events.0.category | small_cat }} du {{ day.date | date:"l j F" }}</h3>
|
||||
</header>
|
||||
|
Loading…
Reference in New Issue
Block a user