Removed header markup for "By Status" multiple choice filter

This commit is contained in:
CocoByte 2025-02-09 18:20:51 -07:00
parent 6fc5a76e92
commit f90fe6c462
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -1,37 +1,41 @@
{% load i18n %} {% load i18n %}
{% load static field_helpers url_helpers %} {% load static field_helpers url_helpers %}
<details data-filter-title="{{ filter_title }}" open="">
<summary>
{% blocktrans with filter_title=title %} By {{ filter_title }} {% endblocktrans %}
</summary>
<ul class="mulitple-choice">
{% for choice in choices %}
{% if choice.reset %}
<li{% if choice.selected %} class="selected"{% endif %}">
<a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">{{ choice.display }}</a>
</li>
{% endif %}
{% endfor %}
<h3>{% blocktrans with filter_title=title %} By {{ filter_title }} {% endblocktrans %}</h3> {% for choice in choices %}
<ul class="mulitple-choice"> {% if not choice.reset %}
{% for choice in choices %} <li{% if choice.selected %} class="selected"{% endif %}">
{% if choice.reset %} {% if choice.selected and choice.exclude_query_string %}
<li{% if choice.selected %} class="selected"{% endif %}"> <a class="choice-filter choice-filter--checked" href="{{ choice.exclude_query_string|iriencode }}">{{ choice.display }}
<a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">{{ choice.display }}</a> <svg class="usa-icon position-absolute z-0 left-0" aria-hidden="true" focusable="false" role="img" width="24" height="24">
</li> <use xlink:href="{%static 'img/sprite.svg'%}#check_box_outline_blank"></use>
{% endif %} </svg>
{% endfor %} <svg class="usa-icon position-absolute z-100 left-0" aria-hidden="true" focusable="false" role="img" width="24" height="24">
{% for choice in choices %} <use xlink:href="{%static 'img/sprite.svg'%}#check"></use>
{% if not choice.reset %} </svg>
<li{% if choice.selected %} class="selected"{% endif %}"> </a>
{% if choice.selected and choice.exclude_query_string %} {% endif %}
<a class="choice-filter choice-filter--checked" href="{{ choice.exclude_query_string|iriencode }}">{{ choice.display }} {% if not choice.selected and choice.include_query_string %}
<svg class="usa-icon position-absolute z-0 left-0" aria-hidden="true" focusable="false" role="img" width="24" height="24"> <a class="choice-filter" href="{{ choice.include_query_string|iriencode }}">{{ choice.display }}
<use xlink:href="{%static 'img/sprite.svg'%}#check_box_outline_blank"></use> <svg class="usa-icon position-absolute z-0 left-0" aria-hidden="true" focusable="false" role="img" width="24" height="24">
</svg> <use xlink:href="{%static 'img/sprite.svg'%}#check_box_outline_blank"></use>
<svg class="usa-icon position-absolute z-100 left-0" aria-hidden="true" focusable="false" role="img" width="24" height="24"> </svg>
<use xlink:href="{%static 'img/sprite.svg'%}#check"></use> </a>
</svg> {% endif %}
</a> </li>
{% endif %} {% endif %}
{% if not choice.selected and choice.include_query_string %} {% endfor %}
<a class="choice-filter" href="{{ choice.include_query_string|iriencode }}">{{ choice.display }} </ul>
<svg class="usa-icon position-absolute z-0 left-0" aria-hidden="true" focusable="false" role="img" width="24" height="24"> </details>
<use xlink:href="{%static 'img/sprite.svg'%}#check_box_outline_blank"></use>
</svg>
</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>