Sha256: 5a2a5506eea6fa61dc29d66c1aa45966268538600bb92d734a20ae213866a415
Contents?: true
Size: 574 Bytes
Versions: 7
Compression:
Stored size: 574 Bytes
Contents
<%# # DateTime Form Partial This partial renders an input element for a datetime attribute. ## Local variables: - `f`: A Rails form generator, used to help create the appropriate input fields. - `field`: An instance of [Administrate::Field::DateTime][1]. A wrapper around the DateTime value pulled from the database. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/DateTime %> <div class="field-unit__label"> <%= f.label field.attribute %> </div> <div class="field-unit__field"> <%= f.datetime_local_field field.attribute, step: 1 %> </div>
Version data entries
7 entries across 7 versions & 1 rubygems