Sha256: 5116cf39430ec9d693b940678e29379a20b46dba672bd6f539d1663edb39f591

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 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

7 entries across 7 versions & 1 rubygems

Version Path
discerner-1.2.2 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-1.2.1 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-1.2.0 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-2.0.0 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-1.1.20 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-1.1.19 app/views/discerner/searches/_form_combined_searches.html.haml
discerner-1.1.18 app/views/discerner/searches/_form_combined_searches.html.haml