Add label for the search term box
authorMagnus Hagander <magnus@hagander.net>
Wed, 18 Apr 2018 16:37:04 +0000 (18:37 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 18 Apr 2018 16:37:04 +0000 (18:37 +0200)
This is in particular needed when there is already something there --
the placeholder is only shown on an empty form.

templates/search/listsearch.html

index c9cf2086cd92c31c995b5f015b5ed80d2bd5f484..7c7ead8dc19dffe3174d67b48d6da75c7e2e156a 100644 (file)
@@ -6,8 +6,9 @@
   <input type="hidden" name="m" value="1">
   <div class="row">
     <div class="col-lg-6">
+      <label for="search-term">Search term:</label>
       <div class="input-group">
-        <input type="text" name="q" value="{{query}}" class="form-control" placeholder="Search for...">
+        <input type="text" id="search-term" name="q" value="{{query}}" class="form-control" placeholder="Search for...">
         <span class="input-group-btn">
           <button class="btn btn-default" type="submit">
             <i class="fas fa-search"></i>