summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2017-09-08 22:20:42 -0600
committermo <mo.khan@gmail.com>2017-09-08 22:20:42 -0600
commit38e4b8a629e1e0903cc5bcd06f038177e6719c80 (patch)
treebab1fa8bf89cbbefa219cf9eaaa2ed7f617604bb
parente273780d6c732f6dc38223b8dd1680416db1ca33 (diff)
make search text required.
-rw-r--r--app/views/layouts/_header.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb
index 9162a609..edc918da 100644
--- a/app/views/layouts/_header.html.erb
+++ b/app/views/layouts/_header.html.erb
@@ -41,7 +41,7 @@
<% end %>
</ul>
<%= form_tag(configuration_for(:search_path, search_path), method: :get, name: "search", class: "form-inline my-2 my-lg-0") do %>
- <%= text_field_tag :q, params[:q], class: 'form-control mr-sm-2', placeholder: 'Search', 'aria-label' => "Search" %>
+ <%= text_field_tag :q, params[:q], class: 'form-control mr-sm-2', placeholder: 'Search', 'aria-label' => "Search", required: :required %>
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
<% end %>
</div>