Sha256: c5cbba6805fdcde305bc39349571eb57ae4408364b65ef0344781e3d642e3ea4

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

<%#
# Time Form Partial

This partial renders an input element for time attributes.
By default, the input is a select field for the time attributes.

## Local variables:

- `f`:
  A Rails form generator, used to help create the appropriate input fields.
- `field`:
  An instance of [Administrate::Field::Time][1].
  A wrapper around the tmie attributes pulled from the model.

%>

<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

2 entries across 2 versions & 1 rubygems

Version Path
administrate-field-time-0.0.2 app/views/fields/time/_form.html.erb
administrate-field-time-0.0.1 app/views/fields/time/_form.html.erb