daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @skills = Trail::SKILL_LEVEL.insert(0,['-select-',''])
  2. @trail_types = Trail::TYPES.insert(0,['-select-',''])
  3. @counties = County.find(:all).collect {|p| [ p.name.to_s, p.id.to_s ] }.insert(0,['-select-',''])
  4.  
  5.  
  6. <%= start_form_tag({:action => 'trails'}, :id => 'trail_search_form', :method => :get) %>
  7.     <p class="trail_search">
  8.         <span><strong></strong></span>
  9.         <br />
  10.         <%= text_field_tag 'query', params[:query], :class => 'border' %>
  11.     </p>
  12.     <p class="trail_search">
  13.         <span><strong>Skill Level</strong></span>
  14.         <br />
  15.         <%= select_tag( :skill_level, options_for_select(@skills , params[:skill_level]), :class => 'border') %>
  16.     </p>
  17.     <p class="trail_search">
  18.         <span><strong>Type</strong></span>
  19.         <br />
  20.         <%= select_tag( :type, options_for_select(@trail_types , params[:type]), :class => 'border') %>
  21.     </p>
  22.     <p class="trail_search">
  23.         <span><strong>County</strong></span>
  24.         <br />
  25.         <%= select_tag( :county_id , options_for_select(@counties, params[:county_id]), :class => 'border' ) %>
  26.     </p>
  27.     <p class="trail_search">
  28.         <br />
  29.         &nbsp;
  30.         <input type="image" src="/images/btn_search.gif" value="Search" />
  31.     </p>
  32.     <%= end_form_tag %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top