Module: Card::Set::Type::Set::HtmlViews::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb,
card/tmpsets/set/mod037-card-mod-rules/type/set/html_views.rb

Instance Method Summary collapse

Instance Method Details

#filtered_rule_list(view, *filter_args) ⇒ Object



30
31
32
33
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 30

def filtered_rule_list view, *filter_args
  [rules_filter(view, *filter_args),
   render(view)]
end

#setting_group(default = :common) ⇒ Object



47
48
49
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 47

def setting_group default=:common
  voo&.filter&.to_sym || params[:group]&.to_sym || default
end

#view: bridge_rules_tabObject



26
27
28
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 26

view :bridge_rules_tab, cache: :never do
  filtered_rule_list :pill_rule_list, :common, :related, mark: ""
end

#view: coreObject



13
14
15
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 13

view :core, cache: :never do
  filtered_rule_list :bar_rule_list
end

#view: inputObject



51
52
53
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 51

view :input do
  "Cannot currently edit Sets" # LOCALIZE
end


21
22
23
24
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 21

view :modal_nest_rules, cache: :never, unknown: true,
                        wrap: { modal: { title: "Rules for nest" } } do
  filtered_rule_list :quick_edit_rule_list, :field_related_rules, :self
end

#view: nest_rulesObject



17
18
19
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 17

view :nest_rules, cache: :never, unknown: true, wrap: :slot do
  filtered_rule_list :quick_edit_rule_list, :field_related_rules, :related, mark: ""
end

#view: one_line_contentObject



55
56
57
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 55

view :one_line_content, wrap: {} do
  ""
end

#view: set_labelObject



35
36
37
# File 'card/tmpsets/set/mod036-card-mod-rules/type/set/html_views.rb', line 35

view :set_label do
  wrap_with :strong, card.label, class: "set-label"
end