Sha256: cca292d21272f445a444dd6f4d3c4615b7fcebd80eb9b86ccdab1fe94331c14a

Contents?: true

Size: 554 Bytes

Versions: 12

Compression:

Stored size: 554 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, data: { type: 'time' } %>
</div>

Version data entries

12 entries across 12 versions & 3 rubygems

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