Sha256: ba6cad896f4b7eaf8127745c657cb0353ccf1e032cdf5c002a19f98e40445b4b

Contents?: true

Size: 969 Bytes

Versions: 8

Compression:

Stored size: 969 Bytes

Contents

- if f.object.disabled? && f.object.warnings.any?
  %tr.error
    %td
    %td.warnings{colspan: "3"}
      %span
        = f.object.warnings.full_messages.join(', ')

- unless f.blank?
  - search_combination_id = discerner_nested_record_id(f, :search_combination)
  %tr{ id: "#{search_combination_id}", class: "search_combination fields #{'error' if f.object.warnings.any?}" }
    %td.combined_search_operator
      %span
        restrict to
    %td.combined_search
      %div.combined_search_combobox
        = f.hidden_field :display_order
        = f.hidden_field :operator_id, value: Discerner::Operator.where(symbol: 'include').first.id
        -#= f.select(:operator_id, operator_options('search'))
        = f.select(:combined_search_id, combined_searches_options(@discerner_search), { include_blank: true },{ class: 'search_combinations_combobox_autocompleter' })
    %td.remove
      = discerner_link_to_remove_fields 'Remove', f, :search_combinations
    %td

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
discerner-2.0.16 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.15 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.14 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.13 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.12 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.11 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.10 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.9 app/views/discerner/searches/_search_combination_fields.html.haml