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
-
#setting_link ⇒ Object
-
#view: help_text ⇒ Object
-
#view: modal_rule ⇒ Object
-
#view: overlay_rule ⇒ Object
-
#view: overlay_title ⇒ Object
Instance Method Details
#setting_link ⇒ Object
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_text ⇒ Object
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 |
#view: modal_rule ⇒ Object
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_rule ⇒ Object
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 slot: ("Rule editing", "rules") do current_rule_form end end |
#view: overlay_title ⇒ Object
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 |