Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @skills = Trail::SKILL_LEVEL.insert(0,['-select-',''])
- @trail_types = Trail::TYPES.insert(0,['-select-',''])
- @counties = County.find(:all).collect {|p| [ p.name.to_s, p.id.to_s ] }.insert(0,['-select-',''])
- <%= start_form_tag({:action => 'trails'}, :id => 'trail_search_form', :method => :get) %>
- <p class="trail_search">
- <span><strong></strong></span>
- <br />
- <%= text_field_tag 'query', params[:query], :class => 'border' %>
- </p>
- <p class="trail_search">
- <span><strong>Skill Level</strong></span>
- <br />
- <%= select_tag( :skill_level, options_for_select(@skills , params[:skill_level]), :class => 'border') %>
- </p>
- <p class="trail_search">
- <span><strong>Type</strong></span>
- <br />
- <%= select_tag( :type, options_for_select(@trail_types , params[:type]), :class => 'border') %>
- </p>
- <p class="trail_search">
- <span><strong>County</strong></span>
- <br />
- <%= select_tag( :county_id , options_for_select(@counties, params[:county_id]), :class => 'border' ) %>
- </p>
- <p class="trail_search">
- <br />
-
- <input type="image" src="/images/btn_search.gif" value="Search" />
- </p>
- <%= end_form_tag %>
Add Comment
Please, Sign In to add comment