Sha256: e6737079bab8482c7e6866bfc58c5f5be9a3cc36b12e542bbb2f10f398255f5f

Contents?: true

Size: 969 Bytes

Versions: 4

Compression:

Stored size: 969 Bytes

Contents

- if f.object.disabled? && f.object.warnings.any?
  %tr.error
    %td
    %td.warnings{colspan: "4"}
      %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

4 entries across 4 versions & 1 rubygems

Version Path
discerner-2.0.8 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.7 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.6 app/views/discerner/searches/_search_combination_fields.html.haml
discerner-2.0.5 app/views/discerner/searches/_search_combination_fields.html.haml