Sha256: 650b0235955c64cc49f03f23f87b7c7d19d71de1e401a4e5f4e2eeb0db9edb9c

Contents?: true

Size: 683 Bytes

Versions: 6

Compression:

Stored size: 683 Bytes

Contents

<%#
# Date Form Partial

This partial renders an input element for a date attribute.

## 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
%>

<div class="mb-4">
  <%= f.label field.attribute, class: "block text-sm font-medium text-gray-700" %>
  <div class="mt-1">
    <%= f.date_field field.attribute, 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/date/_form.html.erb
administrate_tailwind_theme-0.0.5 app/views/fields/date/_form.html.erb
administrate_tailwind_theme-0.0.4 app/views/fields/date/_form.html.erb
administrate_tailwind_theme-0.0.3 app/views/fields/date/_form.html.erb
administrate_tailwind_theme-0.0.2 app/views/fields/date/_form.html.erb
administrate_tailwind_theme-0.0.1 app/views/fields/date/_form.html.erb