app/views/fields/date/_form.html.erb in administrate-0.17.0 vs app/views/fields/date/_form.html.erb in administrate-0.18.0
- old
+ new
@@ -1,24 +1,22 @@
<%#
# 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' } %>
+ <%= f.date_field field.attribute %>
</div>