Sha256: 7cf973f6e0ae81280123cb33c2787ed0c3949f7c34820252d2dc794796296844

Contents?: true

Size: 949 Bytes

Versions: 4

Compression:

Stored size: 949 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 = 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
      = link_to_remove_fields 'Remove', f, :search_combinations
    %td

Version data entries

4 entries across 4 versions & 1 rubygems

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