Sha256: 7bfe210ca8680d12bb03625a3e2387c8d7136432c2df56077d9205eea3bf6f2c

Contents?: true

Size: 970 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

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