Don't hide the search form if there are no results.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 18 Jul 2016 12:18:06 +0000 (08:18 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 18 Jul 2016 12:18:06 +0000 (08:18 -0400)
Use the haveLeads variable to test for results.

views/admin/leads/index.html

index 8cef4c3..fe4eafc 100644 (file)
@@ -19,7 +19,7 @@
     <input type="hidden" name="prevStart" value="{$prevStart}" />
     <input type="hidden" name="nextStart" value="{$nextStart}" />
     <input type="hidden" name="limit" value="{$limit}" />
-    <table style="width: 500px;" id="lead-search-form"{if $searching} class="hide"{/if}>
+    <table style="width: 500px;" id="lead-search-form"{if $searching && $haveLeads} class="hide"{/if}>
         <tr>
             <td style="text-align: right;"><label for="glm-form-source_id">Source</label></td>
             <td>