Module: Card::Set::All::RichHtml::Frame::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- tmpsets/set/mod021-standard/all/rich_html/frame.rb
Instance Method Summary collapse
- #frame(&block) ⇒ Object
- #frame_and_form(action, form_opts = {}) ⇒ Object
- #frame_header ⇒ Object
- #frame_help ⇒ Object
- #panel ⇒ Object
- #standard_frame(slot = true) ⇒ Object
- #with_frame(slot = true, header = frame_header, slot_opts = {}) ⇒ Object
Instance Method Details
#frame(&block) ⇒ Object
16 17 18 |
# File 'tmpsets/set/mod021-standard/all/rich_html/frame.rb', line 16 def frame &block standard_frame &block end |
#frame_and_form(action, form_opts = {}) ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'tmpsets/set/mod021-standard/all/rich_html/frame.rb', line 46 def frame_and_form action, form_opts={} form_opts ||= {} frame do card_form action, form_opts do yield end end end |
#frame_header ⇒ Object
36 37 38 |
# File 'tmpsets/set/mod021-standard/all/rich_html/frame.rb', line 36 def frame_header _render_header end |
#frame_help ⇒ Object
40 41 42 43 44 |
# File 'tmpsets/set/mod021-standard/all/rich_html/frame.rb', line 40 def frame_help with_class_up "help-text", "alert alert-info" do _render :help end end |
#panel ⇒ Object
55 56 57 58 59 |
# File 'tmpsets/set/mod021-standard/all/rich_html/frame.rb', line 55 def panel wrap_with :div, class: classy("d0-card-frame") do yield end end |
#standard_frame(slot = true) ⇒ Object
20 21 22 23 24 |
# File 'tmpsets/set/mod021-standard/all/rich_html/frame.rb', line 20 def standard_frame slot=true with_frame slot do wrap_body { yield } if block_given? end end |
#with_frame(slot = true, header = frame_header, slot_opts = {}) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'tmpsets/set/mod021-standard/all/rich_html/frame.rb', line 26 def with_frame slot=true, header=frame_header, slot_opts={} voo.hide :help add_name_context wrap slot, slot_opts do panel do [header, frame_help, render_flash, (yield if block_given?)] end end end |