Class: Maquina::Application::Components::InputComponent
- Inherits:
-
ComponentBase
- Object
- Phlex::HTML
- ComponentBase
- Maquina::Application::Components::InputComponent
- Defined in:
- app/views/maquina/application/components/input_component.rb
Instance Method Summary collapse
Methods inherited from ComponentBase
Methods included from Maquina::ApplicationView
#attribute_human_name, #button_to, #image_tag, #link_to, #model_human_name, #svg_icon
Constructor Details
This class inherits a constructor from Maquina::Application::Components::ComponentBase
Instance Method Details
#view_template ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/views/maquina/application/components/input_component.rb', line 7 def view_template div(**control_html) do @form.label attribute_name, class: "label #{label_css_class}" div(class: "mt-1") do @form.text_field attribute_name, **input_html help_template error_template end end end |