Skip to content

Instantly share code, notes, and snippets.

@jlstr
Created November 27, 2012 14:38
Show Gist options
  • Select an option

  • Save jlstr/4154545 to your computer and use it in GitHub Desktop.

Select an option

Save jlstr/4154545 to your computer and use it in GitHub Desktop.
price widget slider
<div class="widget" id="price_container">
<h3><%= t :general, scope: :sidebar %></h3>
<div class="box">
<div class="item">
<h4><%= t :price, scope: :sidebar %></h4>
<span class="left">0 $</span>
<span class="right">2.000000$</span>
<%= f.text_field :price_gteq, value: [params[:q][:price_gteq], params[:q][:price_lteq]].join(';') %>
</div>
<div class="item">
<h4><%= t :rooms, scope: :sidebar %></h4>
<span class="left">1</span>
<span class="right">7</span>
<%= f.text_field :rooms_gteq, value: [params[:q][:rooms_gteq], params[:q][:rooms_lteq]].join(';') %>
</div>
<div class="item">
<h4><%= t :bathrooms, scope: :general %></h4>
<span class="left">1</span>
<span class="right">7</span>
<%= f.text_field :baths_gteq, value: [params[:q][:baths_gteq], params[:q][:baths_lteq]].join(';') %>
</div>
<div class="item">
<ul>
<li>
<label>
<%= f.check_box :has_photos_true %>
<%= t :photos, scope: :sidebar %>
</label>
</li>
</ul>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment