Module: Card::Set::All::SetSelect::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod010-rules/all/set_select.rb

Instance Method Summary collapse

Instance Method Details

#card_select(cards, view, path_opts = {}, placeholder = nil) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
# File 'platypus/tmp/set/gem-defaults/mod010-rules/all/set_select.rb', line 15

def card_select cards, view, path_opts={}, placeholder=nil
  form_tag path(path_opts.merge(view: view, mark: "")),
           remote: true, method: "get", role: "filter",
           "data-slot-selector": ".card-slot._fixed-slot",
           class: "nodblclick slotter" do
    output [
      set_select_tag(cards, placeholder),
      (:div, "", class: "card-slot _fixed-slot")
    ]
  end
end

#set_select(set_list_type, setting_list_view = :filtered_accordion_rule_list, path_opts = {}) ⇒ Object



9
10
11
12
13
# File 'platypus/tmp/set/gem-defaults/mod010-rules/all/set_select.rb', line 9

def set_select set_list_type,
               setting_list_view=:filtered_accordion_rule_list,
               path_opts={}
  card_select card.set_list(set_list_type), setting_list_view, path_opts, "Select set"
end

#view: card_selectObject



27
28
29
30
# File 'platypus/tmp/set/gem-defaults/mod010-rules/all/set_select.rb', line 27

view :card_select, wrap: :slot do
  card_select card.set_list(:related),
              :filtered_accordion_rule_list, {}, "Select set"
end