Module: Card::Set::Rule::BoardRulesEditor::HtmlFormat

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

Instance Method Summary collapse

Instance Method Details



28
29
30
31
32
33
34
# File 'platypus/tmp/set/gem-defaults/mod010-rules/rule/board_rules_editor.rb', line 28

def setting_link
  wrap_with :div, class: "ms-auto" do
    link_to_card card.rule_setting_name,
                 " (#{card.rule_setting.count} #{card.rule_setting_title} rules)",
                 class: "text-muted"
  end
end

#view: help_textObject



24
25
26
# File 'platypus/tmp/set/gem-defaults/mod010-rules/rule/board_rules_editor.rb', line 24

view :help_text, unknown: true, cache: :never do
  wrap_help_text [rule_based_help, setting_link].join(" ")
end


15
16
17
18
# File 'platypus/tmp/set/gem-defaults/mod010-rules/rule/board_rules_editor.rb', line 15

view :modal_rule, cache: :never, unknown: true,
                  wrap: { modal: { title: ->(format) { format.render_title } } } do
  current_rule_form
end

#view: overlay_ruleObject



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

view :overlay_rule, cache: :never, unknown: true do
  wrap_with_overlay slot: breadcrumb_data("Rule editing", "rules") do
    current_rule_form
  end
end

#view: overlay_titleObject



20
21
22
# File 'platypus/tmp/set/gem-defaults/mod010-rules/rule/board_rules_editor.rb', line 20

view :overlay_title do
  edit_rule_title
end