Sha256: 71be5550fde9cbd1d34ef96825b0df22d044b2d390f0166d7773d41ffa93efe1

Contents?: true

Size: 730 Bytes

Versions: 17

Compression:

Stored size: 730 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, class: "datetimepicker" %>
</div>

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
semantic-administrate-0.1.1 app/views/fields/date_time/_form.html.erb
administrate-0.9.0 app/views/fields/date_time/_form.html.erb
semantic-administrate-0.1.0 app/views/fields/date_time/_form.html.erb
administrate-0.8.1 app/views/fields/date_time/_form.html.erb
administrate-0.8.0 app/views/fields/date_time/_form.html.erb
administrate-0.7.0 app/views/fields/date_time/_form.html.erb
administrate-0.6.0 app/views/fields/date_time/_form.html.erb
administrate-0.5.0 app/views/fields/date_time/_form.html.erb
administrate-0.4.0 app/views/fields/date_time/_form.html.erb
administrate-0.3.0 app/views/fields/date_time/_form.html.erb
administrate-0.2.2 app/views/fields/date_time/_form.html.erb
administrate-0.2.1 app/views/fields/date_time/_form.html.erb
administrate-0.2.0 app/views/fields/date_time/_form.html.erb
administrate-0.2.0.rc1 app/views/fields/date_time/_form.html.erb
administrate-0.1.5 app/views/fields/date_time/_form.html.erb
administrate-0.1.4 app/views/fields/date_time/_form.html.erb
administrate-0.1.3 app/views/fields/date_time/_form.html.erb