Skip to content
Snippets Groups Projects
Unverified Commit af51c678 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2474 from HyphaApp/enhancement/always-show-submission-filters

Always show submission filters. Remove the Filter button in these cases.
parents f8b7c2b9 8d817f78
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
} else if (data.selected.length == data.all.length) { } else if (data.selected.length == data.all.length) {
return 'All ' + filterType + ' selected'; return 'All ' + filterType + ' selected';
} }
return data.selected.length + ' of ' + data.all.length + ' ' + filterType + ' selected'; return data.selected.length + ' of ' + data.all.length + ' ' + filterType;
}, },
selectionAdapter: SelectionAdapter, selectionAdapter: SelectionAdapter,
returnesultsAdapter: ResultsAdapter returnesultsAdapter: ResultsAdapter
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
}); });
}); });
}); });
}(this.jQuery)); }(this.jQuery));
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{% block content %} {% block content %}
{% block table %} {% block table %}
{% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term use_search=True filter_action=filter_action use_batch_actions=True %} {% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term use_search=True filter_action=filter_action use_batch_actions=True filter_classes="filters-open" %}
{% render_table table %} {% render_table table %}
{% endblock %} {% endblock %}
......
...@@ -47,7 +47,9 @@ ...@@ -47,7 +47,9 @@
{# Right #} {# Right #}
<div class="actions-bar__inner actions-bar__inner--right"> <div class="actions-bar__inner actions-bar__inner--right">
<button class="button button--filters js-toggle-filters">Filters</button> {% if filter_classes != 'filters-open' %}
<button class="button button--filters js-toggle-filters">Filters</button>
{% endif %}
{% if use_search|default:False %} {% if use_search|default:False %}
<form action="{{ search_action }}" method="get" role="search" class="form form--search-desktop"> <form action="{{ search_action }}" method="get" role="search" class="form form--search-desktop">
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<div class="wrapper wrapper--large wrapper--inner-space-medium"> <div class="wrapper wrapper--large wrapper--inner-space-medium">
{% if table %} {% if table %}
{% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term search_placeholder="projects" use_search=True filter_action=filter_action use_batch_actions=True %} {% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term search_placeholder="projects" use_search=True filter_action=filter_action use_batch_actions=True filter_classes="filters-open" %}
{% render_table table %} {% render_table table %}
{% else %} {% else %}
<p>No Projects Available</p> <p>No Projects Available</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment