Sha256: 8e3f269c07ff76967cdfa9e31895625c642a445d07de6df904a76011797db933

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

%table{ class: 'records search_combinations' }
  %thead
    %tr
      %th.combined_search_operator
      %th.combined_search
        Searches
      %th.remove
      %th
  %tbody.nested_records_search_combinations
    - if combined_searches_options(@discerner_search).blank?
      %td{colspan: '4'}
        No qualifying searches found
    - else
      - @discernerSearchCombinationsTemplate = generate_nested_attributes_template(f, :search_combinations, 'search_combination')
      = f.fields_for :search_combinations, f.object.search_combinations.ordered_by_display_order do |search_combination|
        = render partial: 'search_combination_fields', locals: { f: search_combination }

      %tfoot
        %tr
          %td{ colspan: '4', class: 'add_search_combinations_link' }
            = link_to_add_fields "Add search", :search_combinations
.clear

:javascript
  $(function () {
    var discernerSearchCombinationsTemplate = '#{@discernerSearchCombinationsTemplate}';
    if (discernerSearchCombinationsTemplate) {
      new Discerner.SearchCombination.UI({
        searchCombinationsTemplate: discernerSearchCombinationsTemplate
      })
    }
  });

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
discerner-2.0.4 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-2.0.3 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-2.0.2 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-2.0.1 app/views/discerner/searches/_form_combined_searches.html.haml