Sha256: 601c7d6aa69ae53db2de5481baa0fdcc845f68bced9426627e661a1e98d08bb5

Contents?: true

Size: 726 Bytes

Versions: 6

Compression:

Stored size: 726 Bytes

Contents

<%#
# String Form Partial

This partial renders an input element for a string attribute.
By default, the input is a text field.

## Local variables:

- `f`:
  A Rails form generator, used to help create the appropriate input fields.
- `field`:
  An instance of [Administrate::Field::String][1].
  A wrapper around the String pulled from the database.

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

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