Class: LesliView::Forms::BuilderHorizontal
- Inherits:
-
Builder
- Object
- ActionView::Helpers::FormBuilder
- Builder
- LesliView::Forms::BuilderHorizontal
show all
- Defined in:
- lib/lesli_view/forms/builder_horizontal.rb
Instance Method Summary
collapse
-
#field_control(attribute, label: nil, message: nil, category: nil, icon: nil) ⇒ Object
-
#field_control_button(value = nil, options = {}, icon: nil, horizontal: false) ⇒ Object
-
#field_control_select(attribute, choices, label: nil, message: nil, category: nil, icon: nil, humanize: true) ⇒ Object
-
#field_control_submit(value = nil, options = {}) ⇒ Object
-
#field_select(attribute, choices, options = {}, html_options = {}, label: nil, humanize: true) ⇒ Object
Methods inherited from Builder
#css_category
Methods included from Fieldset
#fieldset
Methods included from Inputs
#check_box, #email_field, #label, #password_field, #submit, #text_editor, #text_field
Methods included from Fields
#field_control_builder, #field_control_checkbox, #field_control_email, #field_control_text, #field_control_textarea
Instance Method Details
#field_control(attribute, label: nil, message: nil, category: nil, icon: nil) ⇒ Object
4
5
6
|
# File 'lib/lesli_view/forms/builder_horizontal.rb', line 4
def field_control(attribute, label: nil, message:nil, category:nil, icon:nil)
super(attribute, label:label, message:message, category:category, icon:icon, horizontal:true)
end
|
16
17
18
|
# File 'lib/lesli_view/forms/builder_horizontal.rb', line 16
def field_control_button(value = nil, options = {}, icon:nil, horizontal: false)
super(value, options, icon:icon, horizontal:true)
end
|
#field_control_select(attribute, choices, label: nil, message: nil, category: nil, icon: nil, humanize: true) ⇒ Object
20
21
22
|
# File 'lib/lesli_view/forms/builder_horizontal.rb', line 20
def field_control_select(attribute, choices, label: nil, message:nil, category:nil, icon:nil, humanize:true)
super(attribute, choices, label:label, message:message, category:category, icon:icon, horizontal:true, humanize:humanize)
end
|
#field_control_submit(value = nil, options = {}) ⇒ Object
12
13
14
|
# File 'lib/lesli_view/forms/builder_horizontal.rb', line 12
def field_control_submit(value = nil, options = {})
super(value, options, horizontal:true)
end
|
#field_select(attribute, choices, options = {}, html_options = {}, label: nil, humanize: true) ⇒ Object
8
9
10
|
# File 'lib/lesli_view/forms/builder_horizontal.rb', line 8
def field_select(attribute, choices, options = {}, html_options = {}, label: nil, humanize: true)
super(attribute, choices, options, html_options, label: label, humanize: humanize, horizontal: true)
end
|