Sha256: 11bb9b2248f6d03bed409478b3db15df31f7dadf22ace1fcb797d0d193546bf6

Contents?: true

Size: 734 Bytes

Versions: 16

Compression:

Stored size: 734 Bytes

Contents

<%#
# DateTime Form Partial

This partial renders an input element for a datetime 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::DateTime][1].
  A wrapper around the DateTime value pulled from the database.

[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/DateTime
[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: 'datetime' }  %>
</div>

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
administrate-0.17.0 app/views/fields/date_time/_form.html.erb
administrate-0.16.0 app/views/fields/date_time/_form.html.erb
administrate-0.15.0 app/views/fields/date_time/_form.html.erb
administrate-0.14.0 app/views/fields/date_time/_form.html.erb
viniBaxterDesk-22.0.0 app/views/fields/date_time/_form.html.erb
viniBaxterDesk-0.21.0 app/views/fields/date_time/_form.html.erb
viniBaxterDesk-0.20.0 app/views/fields/date_time/_form.html.erb
viniBaxterDesk-0.14.0 app/views/fields/date_time/_form.html.erb
viniBaxterDesk-0.13.2 app/views/fields/date_time/_form.html.erb
viniBaxterDesk-0.13.1 app/views/fields/date_time/_form.html.erb
administrate-0.13.0 app/views/fields/date_time/_form.html.erb
administrate-0.12.0 app/views/fields/date_time/_form.html.erb
administrate-0.11.0 app/views/fields/date_time/_form.html.erb
semantic-administrate-0.10.1 app/views/fields/date_time/_form.html.erb
semantic-administrate-0.10.0 app/views/fields/date_time/_form.html.erb
administrate-0.10.0 app/views/fields/date_time/_form.html.erb