Updates search box placeholder for logged out users

This commit is contained in:
Mouse Reeve 2021-09-20 12:28:08 -07:00
parent 0a32fefd93
commit 1ed3d4dde1
2 changed files with 8 additions and 2 deletions

View file

@ -37,7 +37,12 @@
<form class="navbar-item column" action="/search/">
<div class="field has-addons">
<div class="control">
<input aria-label="{% trans 'Search for a book or user' %}" id="search_input" class="input" type="text" name="q" placeholder="{% trans 'Search for a book or user' %}" value="{{ query }}">
{% if user.is_authenticated %}
{% trans "Search for a book, user, or list" as search_placeholder %}
{% else %}
{% trans "Search for a book" as search_placeholder %}
{% endif %}
<input aria-label="{{ search_placeholder }}" id="search_input" class="input" type="text" name="q" placeholder="{{ search_placeholder }}" value="{{ query }}">
</div>
<div class="control">
<button class="button" type="submit">

View file

@ -23,7 +23,8 @@
min="0"
name="progress"
size="3"
value="{{ readthrough.progress|default:'' }}">
value="{{ readthrough.progress|default:'' }}"
>
</div>
<div class="control select">
<select name="progress_mode" aria-label="Progress mode">