|
|
@ -24,6 +24,7 @@ class Widget::Filters::MultiValues < Widget::Filters::Base |
|
|
|
def render |
|
|
|
def render |
|
|
|
write(content_tag(:div, id: "#{filter_class.underscore_name}_arg_1", class: 'advanced-filters--filter-value') do |
|
|
|
write(content_tag(:div, id: "#{filter_class.underscore_name}_arg_1", class: 'advanced-filters--filter-value') do |
|
|
|
select_options = { :"data-remote-url" => url_for(action: 'available_values'), |
|
|
|
select_options = { :"data-remote-url" => url_for(action: 'available_values'), |
|
|
|
|
|
|
|
:"data-initially-selected" => JSON::dump(Array(filter.values).flatten), |
|
|
|
style: 'vertical-align: top;', # FIXME: Do CSS |
|
|
|
style: 'vertical-align: top;', # FIXME: Do CSS |
|
|
|
name: "values[#{filter_class.underscore_name}][]", |
|
|
|
name: "values[#{filter_class.underscore_name}][]", |
|
|
|
:"data-loading" => @options[:lazy] ? 'ajax' : '', |
|
|
|
:"data-loading" => @options[:lazy] ? 'ajax' : '', |
|
|
|