Module: Repres::Bootstrap::FormHelper
- Defined in:
- app/helpers/repres/bootstrap/form_helper.rb
Overview
Form Helper 是生成 Bootstrap 风格表单控件的视图辅助模块。
Instance Method Summary collapse
- #bootstrap_form_check_box(options = {}) ⇒ Object
- #bootstrap_form_field(options = {}) ⇒ Object
- #bootstrap_form_radio_box(options = {}) ⇒ Object
- #bootstrap_form_select_box(options = {}) ⇒ Object
Instance Method Details
#bootstrap_form_check_box(options = {}) ⇒ Object
14 15 16 |
# File 'app/helpers/repres/bootstrap/form_helper.rb', line 14 def bootstrap_form_check_box( = {}) render partial: 'repres/bootstrap/form_check_box', locals: { options: } end |
#bootstrap_form_field(options = {}) ⇒ Object
6 7 8 |
# File 'app/helpers/repres/bootstrap/form_helper.rb', line 6 def bootstrap_form_field( = {}) render partial: 'repres/bootstrap/form_field', locals: { options: } end |
#bootstrap_form_radio_box(options = {}) ⇒ Object
18 19 20 |
# File 'app/helpers/repres/bootstrap/form_helper.rb', line 18 def bootstrap_form_radio_box( = {}) render partial: 'repres/bootstrap/form_radio_box', locals: { options: } end |
#bootstrap_form_select_box(options = {}) ⇒ Object
10 11 12 |
# File 'app/helpers/repres/bootstrap/form_helper.rb', line 10 def bootstrap_form_select_box( = {}) render partial: 'repres/bootstrap/form_select_box', locals: { options: } end |