Navigation Menu

Skip to content

Commit

Permalink
Add validation for search input; required
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Jan 13, 2015
1 parent df6289d commit 8c35613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/_form_search.haml
@@ -1,7 +1,7 @@
%form{:class => 'row', :action => '/', :method => 'GET'}
%div{:class => 'form-group'}
%div{:class => 'col-md-6 col-md-offset-2'}
%input{:type => 'search', :class => 'form-control', :name => 'q', :value => @query_words}
%input{:type => 'search', :class => 'form-control', :name => 'q', :value => @query_words, :required => true}
%div{:class => 'col-md-2'}
%button{:class => 'form-control btn btn-default'} Search

0 comments on commit 8c35613

Please sign in to comment.