mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 15:11:01 -05:00
USe search bar partial
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
= form_tag search_crops_path, method: :get, class: 'navbar-form navbar-left', id: 'navbar-search' do
|
||||
.input-group.navbar-search
|
||||
= label_tag :term, "Search crop database:", class: 'sr-only'
|
||||
= text_field_tag 'term', nil, class: 'search-query input-medium form-control text-white', placeholder: t('crops.search')
|
||||
.input-group-btn
|
||||
%button.btn.btn-default{ style: "height: 34px;" }
|
||||
%span.glyphicon.glyphicon-search
|
||||
= form_tag search_crops_path, method: :get, class: 'form-inline my-2 my-lg-0', id: 'navbar-search' do
|
||||
.input-group
|
||||
%input.form-control.mr-sm-2{name: 'term', "aria-label" => "Search", placeholder: "Search", type: "search"}/
|
||||
%button.btn.btn-default.text-white{type: "submit"}
|
||||
= icon 'fas', 'search'
|
||||
Search
|
||||
@@ -66,10 +66,4 @@
|
||||
- else
|
||||
%li.nav-item= link_to t('.sign_in'), new_member_session_path, id: 'navbar-signin', class: 'btn nav-link'
|
||||
%li.nav-item= link_to t('.sign_up'), new_member_registration_path, id: 'navbar-signup', class: 'btn nav-link'
|
||||
|
||||
|
||||
= form_tag search_crops_path, method: :get, class: 'form-inline my-2 my-lg-0' do
|
||||
.input-group
|
||||
%input.form-control.mr-sm-2{name: 'term', "aria-label" => "Search", placeholder: "Search", type: "search"}/
|
||||
%button.btn.btn-default.text-white{type: "submit"}
|
||||
= icon 'fas', 'search'
|
||||
= render 'crops/search_bar'
|
||||
|
||||
Reference in New Issue
Block a user