Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/themes/material/assets/mat.css
Original file line number Diff line number Diff line change
Expand Up @@ -1184,3 +1184,8 @@ p + .btn-background {
.nav-wrapper a:focus {
display: block;
}

/* Search input group styling */
.input-group {
display: flex;
}
19 changes: 12 additions & 7 deletions src/themes/material/templates/repository/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,18 @@ <h1>{{ request.repository.object_name_plural }}</h1>
<form class="form-horizontal" method="POST" action="{% url 'repository_search' %}">
{% csrf_token %}
<div class="form-group">

<div class="input-field">
<i aria-hidden="true" class="fa fa-search prefix" ></i>
<input id="icon_prefix" type="text" class="validate"
{% if search_term %}value="{{ search_term }}"{% endif %} name="search_term">
<label for="icon_prefix" class="">{% trans "Search Preprints" %}</label>
</div>
<div class="input-group">
<label for="search_input" class="sr-only">
{% trans 'Search term' %}
</label>
<input id="search_input" class="input-group-field" type="search" name="search_term"
placeholder='{% trans 'Search preprints' %}'
{% if search_term %}value="{{ search_term }}"{% endif %}>
<button class="btn input-go-button">
<i aria-hidden="true" class="fa fa-search"></i>
<span class="sr-only">{% trans 'Search' %}</span>
</button>
</div>
<p>
<small>{% trans "You can search by:" %}</small>
</p>
Expand Down