Class: Oversee::Field::Input::Date
- Inherits:
-
Oversee::Field::Input
- Object
- Phlex::HTML
- Base
- Oversee::Field
- Oversee::Field::Input
- Oversee::Field::Input::Date
- Defined in:
- app/components/oversee/field/input/date.rb
Constant Summary
Constants inherited from Oversee::Field::Input
Instance Attribute Summary
Attributes inherited from Oversee::Field
#datatype, #key, #resource, #value
Instance Method Summary collapse
Methods inherited from Oversee::Field
#__FORM__, #__INPUT__, #__LABEL__, #__SET__, #__VALUE__, #field_form_id, #field_id, #field_name, #initialize, #resource_class_name
Constructor Details
This class inherits a constructor from Oversee::Field
Instance Method Details
#view_template ⇒ Object
2 3 4 |
# File 'app/components/oversee/field/input/date.rb', line 2 def view_template input(type: "datetime-local", id: field_id, name: field_name, value: value&.strftime("%Y-%m-%dT%T"), class: "flex w-full border rounded-sm px-4 py-2 text-sm") end |