Add event filter frontend module with server-side aggregates

This commit is contained in:
Jürgen Mummert
2026-02-22 11:01:12 +01:00
parent ba10d1c403
commit 0685f8eeb1
5 changed files with 223 additions and 0 deletions
@@ -0,0 +1,27 @@
<div id="eventfilters">
<button type="button" data-filter-tag="all">Alle</button>
{% for tag in tagButtons|default([]) %}
<button type="button" data-filter-tag="{{ tag.id }}">{{ tag.title }} ({{ tag.count }})</button>
{% endfor %}
<div class="widget-select places">
<label for="location-filter">Orte:</label>
<select id="location-filter">
<option value="all">Orte</option>
{% for location in locations|default([]) %}
<option value="location-{{ location.id }}">{{ location.title }} ({{ location.count }})</option>
{% endfor %}
</select>
</div>
<div class="widget-select org">
<label for="org-filter">Veranstalter:</label>
<select id="org-filter">
<option value="all">Veranstalter</option>
{% for organization in organizations|default([]) %}
<option value="org-{{ organization.id }}">{{ organization.title }} ({{ organization.count }})</option>
{% endfor %}
</select>
</div>
</div>