Sha256: 8bd077c8ffe2b703498f65d68bdb122916d607de7bea9c8a43487e97fbaa6b21
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 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">Search Scholarsphere</label> <%= text_field_tag :q, q, :class => "q span50", :id => "search-field-header", :placeholder => "Type keywords in here" %><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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sufia-0.0.1 | app/views/catalog/_search_form.html.erb |
sufia-0.0.1.pre2 | app/views/catalog/_search_form.html.erb |
sufia-0.0.1.pre1 | app/views/catalog/_search_form.html.erb |