Sha256: f9ddd9b2ffa143db4af800f3e4b5fc830c7a30abee77400a8dcfae5c4db2768e

Contents?: true

Size: 737 Bytes

Versions: 6

Compression:

Stored size: 737 Bytes

Contents

<%#
# Password Form Partial

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

## Local variables:

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

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

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