Module: Locomotive::SimpleForm::BootstrapHelpers

Included in:
ArrayInput, DocumentPickerInput, FileInput
Defined in:
lib/locomotive/simple_form.rb

Instance Method Summary collapse

Instance Method Details

#col_wrapping(class_name, column = 6, &block) ⇒ Object



12
13
14
15
16
# File 'lib/locomotive/simple_form.rb', line 12

def col_wrapping(class_name, column = 6, &block)
  template.(:div,
    template.capture(&block).html_safe,
    class: "col-md-#{column} #{class_name}")
end

#row_wrapping(options = {}, &block) ⇒ Object



5
6
7
8
9
10
# File 'lib/locomotive/simple_form.rb', line 5

def row_wrapping(options = {}, &block)
  options.merge!(class: 'row')
  template.(:div,
    template.capture(&block).html_safe,
    options)
end