Module: Railsstrap::Form::LegendHelper
- Includes:
- BaseHelper
- Defined in:
- lib/railsstrap/core_ext/rails/form/legend_helper.rb
Instance Method Summary collapse
Methods included from Helpers
#alert_box, #aside, #badge, #bootstrap_css, #bootstrap_flash, #bootstrap_js, #bootstrap_theme_css, #button, #button_group, #button_to, #card, #card_group, #cdn, #dropdown, #errors_for, #font_awesome_css, #font_awesome_js, #glyphicon, #horizontal, #icon, #jquery_js, #link_to, #modal, #nav, #navbar, #popper_js, #progress_bar, #render_breadcrumbs, #vertical
Instance Method Details
#legend(value, options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/railsstrap/core_ext/rails/form/legend_helper.rb', line 8 def legend(value, = {}) append_class! , 'sr-only' if inline_form? text = content_tag :legend, value, text = content_tag :div, text, class: 'col-sm-12' if horizontal_form? text = label_and_field_container(text, :legend) unless inline_form? text end |