Skip to content
Snippets Groups Projects
Commit cc2a5cd3 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add the search back in

parent 87ec970b
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
<h5>Track and explore recent submissions</h5>
</div>
{% endblock %}
{% include "funds/includes/search.html" %}
</div>
</div>
......@@ -23,7 +24,6 @@
<a href="#" class="js-open-feed link link--open-feed">
<h4 class="heading heading--no-margin heading--activity-feed">Activity Feed</h4>
</a>
|
{% include "funds/includes/activity-feed.html" %}
{% endblock %}
......
......@@ -87,27 +87,26 @@ class SubmissionsByRound(BaseAdminSubmissionsTable):
@method_decorator(staff_required, name='dispatch')
class SubmissionSearchView(SingleTableMixin, FilterView):
class SubmissionSearchView(BaseAdminSubmissionsTable):
template_name = 'funds/submissions_search.html'
table_class = AdminSubmissionsTable
filterset_class = SubmissionFilterAndSearch
def get_queryset(self):
return self.filterset_class._meta.model.objects.current().for_table(self.request.user)
def get_context_data(self, **kwargs):
kwargs = super().get_context_data(**kwargs,)
search_term = self.request.GET.get('query')
# We have more data than just 'query'
active_filters = len(self.filterset.data) > 1
return super().get_context_data(
kwargs.update(
search_term=search_term,
active_filters=active_filters,
**kwargs,
)
return kwargs
@method_decorator(staff_required, name='dispatch')
class ProgressSubmissionView(DelegatedViewMixin, UpdateView):
......
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