Class: Maquina::Application::Components::DateComponent
- Inherits:
-
ComponentBase
- Object
- Phlex::HTML
- ComponentBase
- Maquina::Application::Components::DateComponent
- Defined in:
- app/views/maquina/application/components/date_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 17 18 19 |
# File 'app/views/maquina/application/components/date_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 css_class = { class: input_html.delete(:class) || "" } @form.date_select attribute_name, input_html, css_class help_template error_template end end end |