Module: Bh::Form::SubmitHelper
- Includes:
- BaseHelper
- Defined in:
- lib/bh/core_ext/rails/form/submit_helper.rb
Instance Method Summary collapse
Methods included from Helpers
#alert_box, #bootstrap_css, #bootstrap_js, #bootstrap_theme_css, #button, #button_to, #dropdown, #font_awesome_css, #glyphicon, #horizontal, #icon, #link_to, #modal, #nav, #navbar, #panel, #panel_row, #progress_bar, #vertical
Instance Method Details
#submit(value = nil, options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/bh/core_ext/rails/form/submit_helper.rb', line 8 def submit(value=nil, ={}) context = .delete(:context) || 'primary' append_class! , "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, end end else super value, end end |