Sha256: 7b6f57cfd504a6d9ac3ecb3b6699f21bc35e23cd3bb25cdf960ef92591778c65
Contents?: true
Size: 562 Bytes
Versions: 7
Compression:
Stored size: 562 Bytes
Contents
require 'bh/core_ext/rails/form/base_helper' module Bh module Form module SubmitHelper include BaseHelper def submit(value=nil, options={}) context = options.delete(:context) || 'primary' append_class! options, "btn btn-#{context}" if horizontal_form? content_tag :div, class: 'form-group' do content_tag :div, class: 'col-sm-offset-3 col-sm-9' do super value, options end end else super value, options end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems