Module: Card::Set::Rule::RuleForm::SetSelection::HtmlFormat

Extended by:
AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod010-rules/rule/rule_form/set_selection.rb

Instance Method Summary collapse

Instance Method Details

#board_rule_set_formgroupObject



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

def board_rule_set_formgroup
  tag = @rule_context.rule_user_setting_name
  narrower = []

  wrap_with :div, class: "col-xs-6 mt-3 mb-5" do
    rule_set_options.reverse.map do |set_name, state|
      RuleSetRadio.new(self, set_name, tag, state).html narrower
    end
  end
end

#board_rule_set_selectionObject



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

def board_rule_set_selection
  wrap_with :div, class: "set-list _set-editor" do
    board_rule_set_formgroup
  end
end

#rule_set_optionsObject



26
27
28
# File 'platypus/tmp/set/gem-defaults/mod010-rules/rule/rule_form/set_selection.rb', line 26

def rule_set_options
  @rule_set_options ||= @rule_context.set_options
end