Class: Koi::Helpers::AttributeTypes::DateType
- Inherits:
-
Base
- Object
- Base
- Koi::Helpers::AttributeTypes::DateType
show all
- Defined in:
- lib/generators/koi/helpers/attribute_types.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#collection_attribute ⇒ Object
97
98
99
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 97
def collection_attribute
%(attribute :#{attribute.name}, :date)
end
|
85
86
87
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 85
def govuk_input
%(<%= form.govuk_date_field :#{attribute.name} %>)
end
|
#index_row ⇒ Object
89
90
91
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 89
def index_row
%(<% row.date :#{attribute.name} %>)
end
|
#show_row ⇒ Object
93
94
95
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 93
def show_row
%(<% row.date :#{attribute.name} %>)
end
|