Added search button to search box

Added a search button, because some mobile or TV browsers like Amazon Silk do not submit the search query after entering a value into the search box.
This commit is contained in:
Alex 2023-09-12 21:45:49 +02:00 committed by GitHub
parent ac0c0609bb
commit 10ad09fdf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,5 +5,6 @@
name="q" placeholder="<%= translate(locale, "search") %>" name="q" placeholder="<%= translate(locale, "search") %>"
title="<%= translate(locale, "search") %>" title="<%= translate(locale, "search") %>"
value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>"> value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
<input type="submit" value="<%= translate(locale, "search") %>">
</fieldset> </fieldset>
</form> </form>