From 4a54b69749eca5ed54e8b13e3f4d9f8b9d519cdb Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Thu, 17 Jan 2019 14:08:46 +0000
Subject: [PATCH] Remove search from round page

---
 .../apply/funds/templates/funds/base_submissions_table.html     | 2 +-
 .../funds/templates/funds/includes/table_filter_and_search.html | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/opentech/apply/funds/templates/funds/base_submissions_table.html b/opentech/apply/funds/templates/funds/base_submissions_table.html
index b4eb92b96..0a620e2f6 100644
--- a/opentech/apply/funds/templates/funds/base_submissions_table.html
+++ b/opentech/apply/funds/templates/funds/base_submissions_table.html
@@ -9,7 +9,7 @@
 {% block content %}
     {% block table %}
 
-        {% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term %}
+        {% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term use_search=True%}
 
         {% render_table table %}
     {% endblock %}
diff --git a/opentech/apply/funds/templates/funds/includes/table_filter_and_search.html b/opentech/apply/funds/templates/funds/includes/table_filter_and_search.html
index e12031c16..e16e71eff 100644
--- a/opentech/apply/funds/templates/funds/includes/table_filter_and_search.html
+++ b/opentech/apply/funds/templates/funds/includes/table_filter_and_search.html
@@ -1,12 +1,14 @@
 <div class="wrapper wrapper--table-actions">
     <button class="button button--filters button--contains-icons js-toggle-filters">Filters</button>
 
+    {% if use_search|default:False %}
     <form method="get" role="search" class="form form--search-desktop js-search-form">
         <button class="button button--search" type="submit" aria-label="Search">
             <svg class="icon icon--magnifying-glass icon--search"><use xlink:href="#magnifying-glass"></use></svg>
         </button>
         <input class="input input--search js-search-input" type="text" placeholder="Search submissions" name="query"{% if search_term %} value="{{ search_term }}"{% endif %} aria-label="Search input">
     </form>
+    {% endif %}
 </div>
 
 <div class="filters">
-- 
GitLab