Sha256: 63cd5b304a521a980e94cd8f2e6ccbeb209b6a4157e08842cb8f59d48e06d094

Contents?: true

Size: 545 Bytes

Versions: 7

Compression:

Stored size: 545 Bytes

Contents

<%#
# Time Form Partial

This partial renders an input element for 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.

[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Time
%>

<div class="field-unit__label">
  <%= f.label field.attribute %>
</div>
<div class="field-unit__field">
  <%= f.time_field field.attribute, step: 1 %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
administrate-1.0.0.beta3 app/views/fields/time/_form.html.erb
administrate-1.0.0.beta2 app/views/fields/time/_form.html.erb
administrate-1.0.0.beta1 app/views/fields/time/_form.html.erb
administrate-0.20.1 app/views/fields/time/_form.html.erb
administrate-0.20.0 app/views/fields/time/_form.html.erb
administrate-0.19.0 app/views/fields/time/_form.html.erb
administrate-0.18.0 app/views/fields/time/_form.html.erb