forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- assets
- Loading branch information
Showing
2 changed files
with
171 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
docs/Technical-Documentation/tech-memos/multi-select-fiters/multiselectdropdownfilter.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% load i18n admin_urls %} | ||
<div class="list-filter-dropdown"> | ||
<h3>{% blocktrans with filter_title=title %} By {{ filter_title }} {% endblocktrans %}</h3> | ||
|
||
<div> | ||
<select id="{{ title|slugify }}_select" multiple style="color:#000000;width:100%" aria-multiselectable="true" aria-label="{{ title|slugify }}s" size="{% if choices|length < 7 %} {{ choices|length }} {% else %} 8 {% endif %}"> | ||
{% for choice in choices|slice:"1:" %} | ||
<option{% if choice.selected %} selected{% endif %} | ||
value="{{ choice.value }}" | ||
key="{{ choice.key }}" | ||
style="color:#000000" | ||
{% if choice.selected %} aria-checked="true" {% else %} aria-checked="false" {% endif %}> | ||
{{ choice.display }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
</div> |