]> git.plutz.net Git - shellwiki/commitdiff
search form on result page
authorPaul Hänsch <paul@plutz.net>
Fri, 22 Sep 2023 13:41:38 +0000 (15:41 +0200)
committerPaul Hänsch <paul@plutz.net>
Fri, 22 Sep 2023 13:41:38 +0000 (15:41 +0200)
handlers/40_search.sh
l10n/de.sh

index ca068abca14d67b714c2e601ba344b824596cf59..1d37989eb4c760679e63dd096a6b9e68dbf5153b 100644 (file)
@@ -41,7 +41,10 @@ done \
 done \
 | theme_page - <<-EOF
        <article>
-         <h1>$(_ "Search results:")</h1>
+         <form method=GET>
+         <h1>$(_ "Search results")</h1>
+            <input class="search" name="q" placeholder="$(_ Search)" value="$(HTML $words)"><button class="search" type="submit">$(_ Search)</button>
+         </form>
          <ol class="searchresults">
            $(cat)
          </ol>
index 3777374a849746edbf2d746b4fc87461a2c6c452..40f22928e64ada2c636a1fabd8374d5a0b25efe1 100644 (file)
@@ -57,6 +57,8 @@ case $* in
                        "The given location does not exist.") printf "Den angegebenen Ort gibt es nicht.";;
                                       "Missing parameters.") printf "Fehlende Parameter.";;
                                            "Pages deleted:") printf "Seiten gelöscht:";;
+                                           "Search results") printf "Suchergebnisse";;
+                                                   "Search") printf "Suche";;
                                                           *) printf %s\\n "$*";;
 esac
 }