Sha256: 5dd456ced94d5d50bb3bbef0c06d08bd8c3d6380a61f27c4dab02f48f49af98c
Contents?: true
Size: 530 Bytes
Versions: 6
Compression:
Stored size: 530 Bytes
Contents
module SimpleForm class HorizontalFormBuilder < SimpleForm::DefaultFormBuilder CHECKBOX_WRAPPER = :horizontal_checkbox RADIO_WRAPPER = :horizontal_radio def buttons(options = {}, &block) raise ::ArgumentError unless block_given? options[:class] ||= 'col-sm-offset-3 col-sm-9 col-md-offset-3 col-md-9 col-lg-offset-2 col-lg-10' @template.content_tag(:div, class: 'form-group') do @template.content_tag(:div, class: options[:class]) do yield end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems