Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There could be filters but all of them horizontal. We still want to collapse vertical container. #588

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions suit/templates/admin/change_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
{% block search %}{% suit_search_form cl %}{% endblock %}

{% block filters %}
{% if cl.has_filters %}
<div id="changelist-filter">{% for spec in cl.filter_specs|suit_list_filter_vertical:cl %}
{% if forloop.first %}
<h2>{% trans 'Filter' %}</h2>
{% endif %}
{% admin_list_filter cl spec %}
{% endfor %}</div>
{% endif %}
{% with vertical_filters=cl.filter_specs|suit_list_filter_vertical:cl %}
{% if vertical_filters %}
<div id="changelist-filter">{% for spec in vertical_filters %}
{% if forloop.first %}
<h2>{% trans 'Filter' %}</h2>
{% endif %}
{% admin_list_filter cl spec %}
{% endfor %}</div>
{% endif %}
{% endwith %}
{% endblock %}

{% block footer %}
Expand Down