Eliminate two clicks from search.
authorPete <pete@debu.gs>
Sat, 3 Apr 2021 05:49:41 +0000 (22:49 -0700)
committerPete <pete@debu.gs>
Sat, 3 Apr 2021 05:49:41 +0000 (22:49 -0700)
templates/search.tmpl

index 0473d4a47663eb0c8a1b49a88a879ada7f7a3ad1..74a856b8908621919fb4a197cbc195bcfcbc980d 100644 (file)
@@ -7,14 +7,8 @@
                <label for="query"> Query </label>
                <input id="query" name="q" value="{{.Q}}">
        </span>
-       <span class="post-form-field">
-               <label for="type"> Type </label>
-               <select id="type" name="type">
-                       <option value="statuses" {{if eq .Type "statuses"}}selected{{end}}>Statuses</option>
-                       <option value="accounts" {{if eq .Type "accounts"}}selected{{end}}>Accounts</option>
-               </select>
-       </span>
-       <button type="submit"> Search </button>
+       <input type="submit" name="type" value="statuses">
+       <input type="submit" name="type" value="accounts">
 </form>
 
 {{if eq .Type "statuses"}}