Module: Card::Set::Abstract::SkinBox::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod022-style/abstract/skin_box.rb

Instance Method Summary collapse

Instance Method Details

#select_button(target = parent.card) ⇒ Object



25
26
27
28
29
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/skin_box.rb', line 25

def select_button target=parent.card
  link_to_card target, "Apply",
               path: { action: :update, card: { content: "[[#{card.name}]]" } },
               class: "btn btn-sm btn-primary"
end

#view: boxObject



9
10
11
12
13
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/skin_box.rb', line 9

view :box, cache: :yes do
  class_up "box-middle", "p-0"
  voo.hide :customize_button, :box_middle
  super()
end

#view: box_bottomObject



15
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/skin_box.rb', line 15

view :box_bottom, template: :haml

#view: box_middleObject



21
22
23
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/skin_box.rb', line 21

view :box_middle do
  field_nest :image, view: :full_width, size: :large if card.fetch :image
end

#view: customize_buttonObject



17
18
19
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/skin_box.rb', line 17

view :customize_button do
  ""
end