Commit 4f016d6d authored by Dominik Dörr's avatar Dominik Dörr
Browse files

Fix event category filter

Note: You have to set the category mode in the sf_event_mgt plugin to "show selected categories (or)" instead of "ignore category selection"
parent 7db03925
Pipeline #5504 passed with stages
in 4 minutes and 8 seconds
......@@ -60,30 +60,15 @@
<f:section name="Filter">
<f:if condition="{settings.templateLayout} == '2'">
<f:else>
<f:form class="event-filter">
<f:form.select
class="custom-select"
name="event_filter"
additionalAttributes="{onchange:'this.form.submit()'}">
<f:form class="event-filter">
<f:form.select class="custom-select" name="event-filter-neu" additionalAttributes="{onchange: 'location = this.value;'}">
<f:for each="{categories}" as="category">
<option value="{category.uid}">
<f:if condition="{overwriteDemand.category} == {category.uid}">
<f:then>
<f:link.action action="list" controller="Event" arguments="{overwriteDemand:{category: category}}" class="active">
{category.title}
</f:link.action>
</f:then>
<f:else>
<f:link.action action="list" controller="Event" arguments="{overwriteDemand:{category: category}}">
{category.title}
</f:link.action>
</f:else>
</f:if>
<option value="{f:uri.action(action: 'List', controller: 'Event', arguments: '{overwriteDemand:{category: category}}')}" {f:if(condition: '{overwriteDemand.category} == {category.uid}', then: 'class="active" selected="selected"')}>
{category.title}
</option>
</f:for>
</f:form.select>
</f:form>
</f:form>
</f:else>
</f:if>
</f:section>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment