Sha256: 4bcb7b5256fe915780ff91351a320974972452b970ef9864b7a96afcb6fb76e2
Contents?: true
Size: 779 Bytes
Versions: 4
Compression:
Stored size: 779 Bytes
Contents
= form_for platform.name, :html => {:method => 'get', :class => 'search'} do |f| - p = params[platform.name] = f.fields_for :search do |s| - if platform.search_field? = s.text_field :text, :value => get_value([:search, :text], p), :placeholder => t('bhf.helpers.searchform.placeholder') - if p && p[:search].is_a?(Hash) - p[:search].each do |key, value| = s.hidden_field key, :value => value, :id => nil - if platform.custom_search = render :partial => platform.custom_search, :locals => { :platform => platform, :f => f, :s => s, :p => p } = f.hidden_field :per_page, :value => get_value(:per_page, p) = f.hidden_field :order, :value => get_value(:order, p) = f.hidden_field :direction, :value => get_value(:direction, p)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bhf-0.2.7 | app/views/bhf/pages/_search.haml |
bhf-0.2.6 | app/views/bhf/pages/_search.haml |
bhf-0.2.5 | app/views/bhf/pages/_search.haml |
bhf-0.2.4 | app/views/bhf/pages/_search.haml |