Sha256: 9831024c84c555e76d852ce065e8076bf9f53668a3d57136aa60fae72bd79585
Contents?: true
Size: 1.22 KB
Versions: 31
Compression:
Stored size: 1.22 KB
Contents
<%# only display the q parameter if the controller is not the dashboard. If they are in the dashboard controller, then the search is of the dashboard. %> <% q = params[:controller] == 'dashboard' ? nil : params[:q] %> <%= form_tag catalog_index_path, :method => :get, :id => "search-form-header" do %> <%= search_as_hidden_fields(:omit_keys => [:q, :search_field, :qt, :page]).html_safe %> <div class="controls"> <div class="input-append"> <label class="accessible-hidden"><%= t('sufia.search.form.q.label') %></label> <%= text_field_tag :q, q, :class => "q span50", :id => "search-field-header", :placeholder => t('sufia.search.form.q.placeholder') %><button type="submit" class="btn btn-info" id="search-submit-header"><i class="icon-search"></i> Go</button> <!-- <input type="submit" class="btn btn-info" id="search-submit-header" value="GO"><i class="icon-search"></i></input> --> <%# link_to 'more options', params.merge(:controller=>"advanced", :action=>"index") , :class=>"advanced_search" if ! current_page?(advanced_path)%> <%# link_to 'less options', :back , :class=>"advanced_search" if current_page?(advanced_path)%> </div> </div> <% end %>
Version data entries
31 entries across 31 versions & 1 rubygems