Module: Adminterface::Extensions::Inputs::Base::Wrapping
- Included in:
- Adminterface::Extensions::Inputs::Base
- Defined in:
- lib/adminterface/extensions/inputs/base/wrapping.rb
Instance Method Summary collapse
Instance Method Details
#input_wrapping(&block) ⇒ Object
6 7 8 9 10 |
# File 'lib/adminterface/extensions/inputs/base/wrapping.rb', line 6 def input_wrapping(&block) html = input_wrapping_html(&block) template.concat(html) if template.output_buffer && template.assigns[:has_many_block] html end |
#input_wrapping_html(&block) ⇒ Object
12 13 14 15 16 |
# File 'lib/adminterface/extensions/inputs/base/wrapping.rb', line 12 def input_wrapping_html(&block) template.content_tag(:div, [template.capture(&block), error_html, hint_html].join("\n").html_safe, ) end |
#wrapper_classes ⇒ Object
18 19 20 |
# File 'lib/adminterface/extensions/inputs/base/wrapping.rb', line 18 def wrapper_classes "#{super} mb-3" end |