recurrent
parent
e866578b9e
commit
541ede7fdc
@ -1,32 +1,34 @@
|
||||
@import "compass"
|
||||
|
||||
header
|
||||
form#lug_search
|
||||
top: 6em
|
||||
right: 2em
|
||||
position: absolute
|
||||
font-size: x-large
|
||||
h2
|
||||
margin: 0
|
||||
font-size: x-large
|
||||
font-style: normal
|
||||
label
|
||||
display: none
|
||||
input
|
||||
border: solid thin #258
|
||||
|
||||
img.favicon
|
||||
max-height: 2em
|
||||
vertical-align: middle
|
||||
@include border-radius(3px)
|
||||
|
||||
button.search
|
||||
color: #258
|
||||
border: none
|
||||
cursor: pointer
|
||||
form#lug_search
|
||||
right: 5%
|
||||
position: absolute
|
||||
font-size: x-large
|
||||
margin-top: 0.2em
|
||||
margin-left: -1.3em
|
||||
background-color: transparent
|
||||
&:hover
|
||||
color: #2E97FF
|
||||
text-align: right
|
||||
margin-top: -1.2em
|
||||
padding-right: 2px
|
||||
label
|
||||
display: none
|
||||
input
|
||||
border: solid thin #258
|
||||
margin-left: -1.5em
|
||||
padding-left: 1.5em
|
||||
padding-right: 1.2em
|
||||
background-color: transparent
|
||||
button
|
||||
margin-left: -1.4em
|
||||
|
||||
button.search
|
||||
color: #258
|
||||
border: none
|
||||
cursor: pointer
|
||||
font-size: larger
|
||||
margin-top: 0.2em
|
||||
background-color: transparent
|
||||
&:hover
|
||||
color: #2E97FF
|
||||
|
@ -1,13 +1,8 @@
|
||||
- # So we can use the search form from any page
|
||||
- @search = Lug.search params[:q] unless @search
|
||||
|
||||
= search_form_for @search do |f|
|
||||
= search_form_for @search || Lug.search(params[:q]) do |f|
|
||||
= link_to lugs_path do
|
||||
%h2
|
||||
%em.fa.fa-users
|
||||
= title t '.title', entity: Lug.model_name.human
|
||||
|
||||
= f.label :name_cont
|
||||
= f.search_field :name_or_city_or_department_or_region_or_url_cont, size: 14
|
||||
= f.label :name_cont
|
||||
%em.fa.fa-users
|
||||
= f.search_field :name_or_city_or_department_or_related_region_name_or_url_cont, size: 13,
|
||||
placeholder: t('.title', entity: Lug.model_name.human)
|
||||
= f.button class: :search do
|
||||
%em.fa.fa-search
|
||||
|
Loading…
Reference in new issue