app/helpers/form_helper.rb
## Generates verbose bootstrap wrapper HTML for generic forms
#
## Accepts a hash of arguments with the following keys:
## id: id attribute of the input element (necessary for accessible labels)
## label: label text
Generates verbose bootstrap wrapper HTML for generic forms
Accepts a hash of arguments with the following keys:
id: id attribute of the input element (necessary for accessible labels)
label: label text
Generates verbose bootstrap wrapper HTML for generic forms Accepts a hash of arguments with the following keys : id : id attribute of the input element ( necessary for accessible labels ) label : label text
def input_block(options = {}, &block)
    label_text = options.delete(:label)
    id = options.delete(:id)
    label = if label_text
      label_tag(id, label_text, class: 'col-form-label')
    else
      ActiveSupport::SafeBuffer.new 
    end
    content_tag(:div, class: 'control-group') do
      label <<
      content_tag(:div, class: 'controls') do
        capture(&block)
      end
    end
  end
def input_block ( options = { } , & block ) label_text = options . delete ( :label ) id = options . delete ( :id ) label = if label_text label_tag ( id , label_text , class : 'col-form-label' ) else ActiveSupport :: SafeBuffer . new end content_tag ( :div , class : 'control-group' ) do label << content_tag ( :div , class : 'controls' ) do capture ( & block ) end end end
Generates verbose bootstrap wrapper HTML for generic forms
Accepts a hash of arguments with the following keys:
id: id attribute of the input element (necessary for accessible labels)
label: label text
Generates verbose bootstrap wrapper HTML for generic forms Accepts a hash of arguments with the following keys : id : id attribute of the input element ( necessary for accessible labels ) label : label text
# empty safe string
options
<not_specific>
block
<not_specific>