Sha256: af68b202d0264504d2d05f0b89c74a53949ad6edb75a3ff39a0a84ed85cb3721

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 Bytes

Contents

<%#
# HasOne Form Partial

This partial renders an input element for has_one relationships.

At the moment, has_one form fields are not supported,
so this partial renders a message to that effect.

## Local variables:

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

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

<div class="field-unit__label">
  <%= f.label field.attribute %>
</div>

<div class="field-unit__field">
  <%= t("administrate.fields.has_one.not_supported") %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
administrate-0.7.0 app/views/fields/has_one/_form.html.erb