Sha256: 3938c8451ca44f9249515ec3b051a7764386e517c5e4cd08def77815bfde34e8

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

<%#
# Date Show Partial

This partial renders a date attribute,
to be displayed on a resource's show page.

By default, the attribute is rendered
as a localized date string.

## Local variables:

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

<% if field.data %>
  <div class="bg-gray-50 p-3 rounded-md shadow-sm">
    <%= field.date %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

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