Disable Date Range option in Filter Box if the to_date already provided

This commit is contained in:
bbe 2020-11-05 16:47:32 +01:00
parent f68826496b
commit ba5847b5bd

View File

@ -173,7 +173,7 @@
<option id="filterBuilderSelect-Keywords" value="Keywords"{% if query_params.search_string %} disabled{% endif %}> <option id="filterBuilderSelect-Keywords" value="Keywords"{% if query_params.search_string %} disabled{% endif %}>
{% trans "Keywords" %} {% trans "Keywords" %}
</option> </option>
<option id="filterBuilderSelect-Dates" value="Dates"{% if query_params.filtering.created__gte %} disabled{% endif %}> <option id="filterBuilderSelect-Dates" value="Dates"{% if query_params.filtering.created__gte or query_params.filtering.created__lte %} disabled{% endif %}>
{% trans "Date Range" %} {% trans "Date Range" %}
</option> </option>
<option id="filterBuilderSelect-KBItems" value="KBItems"{% if query_params.filtering.kbitem__in %} disabled{% endif %}> <option id="filterBuilderSelect-KBItems" value="KBItems"{% if query_params.filtering.kbitem__in %} disabled{% endif %}>