module Adminterface::Extensions::Inputs::Base::Wrapping
Public Instance Methods
input_wrapping(&block)
click to toggle source
# 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)
click to toggle source
# 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, wrapper_html_options) end
wrapper_classes()
click to toggle source
# File lib/adminterface/extensions/inputs/base/wrapping.rb, line 18 def wrapper_classes "#{super} mb-3" end