Skip to content

Commit

Permalink
Set placeholder text in body of template
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchamp committed Sep 6, 2024
1 parent f4222d3 commit f1344e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openlibrary/templates/search/searchbox.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
$def with (q, placeholder=_('Search'))
$def with (q, placeholder="")

$ placeholder = placeholder or _('Search')

<div class="searchbox">
<input type="text" class="searchbox__input" name="q" size="100" placeholder="$placeholder" aria-label="$_('Search')" value="$q">
<div>
Expand Down

0 comments on commit f1344e3

Please sign in to comment.