Sha256: 0aea4feab7ba6059a58e3383fc76a352c8c76575fd755d94d7162637c7cd6405
Contents?: true
Size: 710 Bytes
Versions: 11
Compression:
Stored size: 710 Bytes
Contents
<%# # Date Form Partial This partial renders an input element for a date attribute. By default, the input is a text field that is augmented with [DateTimePicker]. ## Local variables: - `f`: A Rails form generator, used to help create the appropriate input fields. - `field`: An instance of [Administrate::Field::Date][1]. A wrapper around the Date value pulled from the database. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Date [DateTimePicker]: https://github.com/Eonasdan/bootstrap-datetimepicker %> <div class="field-unit__label"> <%= f.label field.attribute %> </div> <div class="field-unit__field"> <%= f.text_field field.attribute, data: { type: 'date' } %> </div>
Version data entries
11 entries across 11 versions & 2 rubygems