Sha256: 3ca25155b138572cbb031f9f24fba5d7b1e81d32bf0c791a714c266d17521412

Contents?: true

Size: 691 Bytes

Versions: 6

Compression:

Stored size: 691 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="mb-4">
  <%= f.label field.attribute, class: "block text-sm font-medium text-gray-700" %>
  <div class="mt-1">
    <%= f.time_field field.attribute, step: 1, class: "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md" %>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
administrate_tailwind_theme-0.0.6 app/views/fields/time/_form.html.erb
administrate_tailwind_theme-0.0.5 app/views/fields/time/_form.html.erb
administrate_tailwind_theme-0.0.4 app/views/fields/time/_form.html.erb
administrate_tailwind_theme-0.0.3 app/views/fields/time/_form.html.erb
administrate_tailwind_theme-0.0.2 app/views/fields/time/_form.html.erb
administrate_tailwind_theme-0.0.1 app/views/fields/time/_form.html.erb