Browse Source

Fix missing search box on statistics page (admin view)

Kristan Kenney 5 years ago
parent
commit
d9887902d0
1 changed files with 11 additions and 0 deletions
  1. 11 0
      web/templates/admin/list_stats.html

+ 11 - 0
web/templates/admin/list_stats.html

@@ -4,6 +4,17 @@
               <a class="ui-button cancel" href='/list/stats/'><i class="fas fa-info-circle status-icon lightblue"></i> <?=_('Overall Statistics')?></a>
           </div>
         <div class="l-sort-toolbar clearfix">
+          <table>
+            <tr>
+                <td class="l-sort-toolbar__search-box">
+                    <form action="/search/" method="get">
+                      <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
+                      <input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
+                      <button type="submit" class="l-sort-toolbar__filter-apply" onclick="return doSearch('/search/')" value=""><i class="fas fa-search"></i></button>
+                    </form>
+                  </td>
+            </tr>
+          </table>
           <table>
             <tr>
               <td>