Skip to content

Instantly share code, notes, and snippets.

@grayontheweb
Created January 19, 2015 20:42
Show Gist options
  • Save grayontheweb/18813805121846bca227 to your computer and use it in GitHub Desktop.
Save grayontheweb/18813805121846bca227 to your computer and use it in GitHub Desktop.
yunowerk
#searchForm{:role => "search"}
%select#searchPath
%option{:'data-action' => '/properties/search'}=t('.residential')
%option{:'data-action' => '/residential/rentals'}=t('.rentals')
%option{:'data-action' => '/vacation_rentals'}=t('.vacation_rentals')
%option{:'data-action' => '/lots_and_land'}=t('.lots_and_land')
%option{:'data-action' => '/communities'}=t('.communities')
%form#search{ :action => "/properties/search", :method => "get" }
.fields
= text_field_tag('q', t('.quick_search'), { :id => 'searchBox', :tabindex => "1", :onblur => "if(this.value==''){this.value='Web#/Keyword'}", :onfocus => "if(this.value=='Web#/Keyword'){this.value=''}" })
= button 'GO', :submit => 'search'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment