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

Version Path
administrate-0.17.0 app/views/fields/date/_form.html.erb
administrate-0.16.0 app/views/fields/date/_form.html.erb
administrate-0.15.0 app/views/fields/date/_form.html.erb
administrate-0.14.0 app/views/fields/date/_form.html.erb
viniBaxterDesk-22.0.0 app/views/fields/date/_form.html.erb
viniBaxterDesk-0.21.0 app/views/fields/date/_form.html.erb
viniBaxterDesk-0.20.0 app/views/fields/date/_form.html.erb
viniBaxterDesk-0.14.0 app/views/fields/date/_form.html.erb
viniBaxterDesk-0.13.2 app/views/fields/date/_form.html.erb
viniBaxterDesk-0.13.1 app/views/fields/date/_form.html.erb
administrate-0.13.0 app/views/fields/date/_form.html.erb