Skip to content
Snippets Groups Projects
Commit 197780e3 authored by Michael Kessler's avatar Michael Kessler
Browse files

[TASK] Integrate label into the select field inside the filter

parent b8d72f2a
No related branches found
No related tags found
No related merge requests found
<f:form id="tx-sgnews-filter" method="get" objectName="newsFilter">
<div class="tx-sgnews-filter-bar">
<div class="tx-sgnews-filter-bar-form-control">
<label for="filter-categories">
<f:if condition="{categoryLabel}">
<f:then>
{categoryLabel}
</f:then>
<f:else>
<f:translate key="frontend.filter.category"/>
</f:else>
</f:if>
</label>
<f:form.select class="tx-sgnews-select form-control" multiple="0" size="1" value="{selectedCategory.uid}"
property="category" optionLabelField="title" optionValueField="uid" options="{categories}"
id="filter-categories" prependOptionLabel="" prependOptionValue=""/>
id="filter-categories" prependOptionValue=""
prependOptionLabel="{f:if(condition: '{categoryLabel}', then: '{categoryLabel}', else: '{f:translate(key: \'frontend.filter.category\')}')}" />
</div>
<div class="tx-sgnews-filter-bar-form-control">
<label for="filter-tags">
<f:if condition="{tagLabel}">
<f:then>
{tagLabel}
</f:then>
<f:else>
<f:translate key="frontend.filter.tag"/>
</f:else>
</f:if>
</label>
<f:form.select class="tx-sgnews-select form-control" multiple="0" size="1" value="{selectedTag.uid}"
property="tag" optionValueField="uid" options="{tags}" id="filter-tags"
optionLabelField="title" prependOptionLabel="" prependOptionValue=""/>
optionLabelField="title" prependOptionValue=""
prependOptionLabel="{f:if(condition: '{tagLabel}', then: '{tagLabel}', else: '{f:translate(key: \'frontend.filter.tag\')}')}"/>
</div>
</div>
</f:form>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment