Sha256: 57c562a32d848b7dc40783adb8a591020ebefdaa3ff4413a95684f2611cd6178

Contents?: true

Size: 1.84 KB

Versions: 4

Compression:

Stored size: 1.84 KB

Contents

<% search_fields_for_advanced_search.take(3).each_with_index do |(key, field_def), index| %>
    <div class="advanced_search_field form-group">
      <%= select_tag('search_index[]',
                     options_for_select(search_fields,
                                        search_fields[index]),
                     :title => t('blacklight.search.basic_search.form.search_indexes'),
                     :class=> 'btn btn-default search_index_select col-sm-2 control-label') %>
      <%= label_tag('input' + (index+1).to_s,
                    t('blacklight.search.basic_search.form.q') + ' (' + (index+1).to_s + ')',
                    :class => 'sr-only') %>
      <div class="col-sm-6">
        <%= text_field_tag 'query[]',
                           nil,
                           :class => 'advanced_input_text form-control',
                           :autofocus => index == 0 ? true : false %>
      </div>
    </div>
<% end %>
<div class="advanced_search_field">
  <div id="advanced_operators" class="col-sm-offset-2 col-sm-6">
    <label class="radio-inline">
      <%= radio_button_tag(:op, 'AND', :checked) %> find all terms
    </label>
    <label class="radio-inline">
      <%= radio_button_tag(:op, 'OR') %> find any terms
    </label>
  </div>
</div>
<div class="pull-right">
  <%= submit_tag t('blacklight_advanced_search.form.search_btn'), :class=>'btn btn-primary advanced_submit', :id=>'advanced_search' %>
  <%= link_to t('blacklight_advanced_search.form.start_over'), blacklight_advanced_search_engine.advanced_search_path, :class =>'reset btn btn-default' %>
</div>

<%# search_fields_for_advanced_search.each do |key, field_def| -%>
    <!-- <div class="advanced_search_field"> -->
      <%# label_tag key, "#{field_def.label }:" %>
      <%# text_field_tag key, label_tag_default_for(key), :class => 'input-block-level' %>
    <!-- </div> -->
<%# end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 app/views/advanced/_advanced_search_fields.html.erb
commonwealth-vlr-engine-0.0.4 app/views/advanced/_advanced_search_fields.html.erb
commonwealth-vlr-engine-0.0.3 app/views/advanced/_advanced_search_fields.html.erb
commonwealth-vlr-engine-0.0.2 app/views/advanced/_advanced_search_fields.html.erb