Sha256: 63987917de167bae88d0965686541c9c569ae030ad22165191ab1f785c960a20

Contents?: true

Size: 465 Bytes

Versions: 24

Compression:

Stored size: 465 Bytes

Contents

# To be included in a field card to get a filter for the parent.
# The core view renders a filter for the left card.

include_set Set::Abstract::Filter

def virtual?
  new?
end

format :html do
  def filter_action_path
    path mark: card.name.left, view: filter_view
  end

  view :core, cache: :never do
    filter_fields slot_selector: filter_selector
  end

  def filter_view
    :filter_result
  end

  def filter_selector
    ".#{filter_view}-view"
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
card-mod-search-0.13.2 set/abstract/04_right_filter_form.rb
card-mod-search-0.13.1 set/abstract/04_right_filter_form.rb
card-mod-search-0.13.0 set/abstract/04_right_filter_form.rb
card-mod-search-0.11.7 set/abstract/04_right_filter_form.rb
card-mod-search-0.12.0 set/abstract/04_right_filter_form.rb
card-mod-search-0.11.6 set/abstract/04_right_filter_form.rb
card-mod-search-0.11.5 set/abstract/04_right_filter_form.rb
card-mod-search-0.11.4 set/abstract/04_right_filter_form.rb
card-mod-search-0.11.3 set/abstract/04_right_filter_form.rb
card-mod-search-0.11.2 set/abstract/04_right_filter_form.rb
card-mod-search-0.11.1 set/abstract/04_right_filter_form.rb
card-mod-search-0.11.0 set/abstract/04_right_filter_form.rb
card-1.100.0 mod/search/set/abstract/04_right_filter_form.rb
card-1.99.6 mod/search/set/abstract/04_right_filter_form.rb
card-1.99.5 mod/search/set/abstract/04_right_filter_form.rb
card-1.99.4 mod/search/set/abstract/04_right_filter_form.rb
card-1.99.3 mod/search/set/abstract/04_right_filter_form.rb
card-1.99.2 mod/search/set/abstract/04_right_filter_form.rb
card-1.99.1 mod/search/set/abstract/04_right_filter_form.rb
card-1.99.0 mod/search/set/abstract/04_right_filter_form.rb