-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 [#3018] Make mobile search filters into modal and checkbox-lists
- Loading branch information
1 parent
b82781a
commit 6f0f5a3
Showing
2 changed files
with
73 additions
and
11 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/open_inwoner/components/templates/components/Filter/SearchFilter.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,31 @@ | ||
{% load i18n l10n form_tags icon_tags button_tags %} | ||
|
||
<div class="filter-bar__multiselect-listbox multiselect-listbox" id="selectDropdownWrapper"> | ||
<div class="multiselect-listbox__popup"> | ||
<button id="selectButton" type="button" class="button button__select" aria-haspopup="listbox" aria-expanded="false" aria-live="polite"> | ||
{% trans 'Status' %}: | ||
{% icon icon="expand_more" icon_position="after" icon_outlined=True %} | ||
</button> | ||
<div id="listboxDropdown" class="multiselect-listbox__content" role="listbox" aria-labelledby="selectButton"> | ||
<div class="multiselect-listbox__scroll" role="presentation"> | ||
{% for status, frequency in statusfrequencies %} | ||
<div class="checkbox" role="option"> | ||
<input type="checkbox" name="status" value="{{ status }}" id="id_status_{{ forloop.counter }}" class="checkbox__input"> | ||
<label class="checkbox__label" for="id_status_{{ forloop.counter }}"> | ||
<span class="ellipsis">{{ status }} </span><span class="frequency-counter">({{ frequency }})</span> | ||
</label> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{# Submit button updates on select #} | ||
<div class="form__actions form__actions--fullwidth" id="multiselectFormActions"> | ||
<button class="button button--primary" type="submit" title="{% trans 'Toon resultaten' %}" aria-label="{% trans 'Toon resultaten' %}" id="filterCases"> | ||
{% trans 'Toon' %}<span class="filter-bar__frequency-sum" id="frequencySum">0</span><span id="resultText">{% trans 'resultaten' %}</span> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="form__reset--desktop form__actions--fullwidth form__actions--reset"> | ||
{% button bordered=False text=_("Wis alle filters") id="resetMultiSelectFilters" type="button" transparent=True primary=True %} | ||
</div> | ||
</div> | ||
</div> |
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