Sha256: 81c37a1baaa8208abe3b6532d47bb19576368fd475520dc3aa161c6c9edb3b2a

Contents?: true

Size: 639 Bytes

Versions: 11

Compression:

Stored size: 639 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>

<%= t("administrate.fields.has_one.not_supported") %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
administrate-0.6.0 app/views/fields/has_one/_form.html.erb
administrate-0.5.0 app/views/fields/has_one/_form.html.erb
administrate-0.4.0 app/views/fields/has_one/_form.html.erb
administrate-0.3.0 app/views/fields/has_one/_form.html.erb
administrate-0.2.2 app/views/fields/has_one/_form.html.erb
administrate-0.2.1 app/views/fields/has_one/_form.html.erb
administrate-0.2.0 app/views/fields/has_one/_form.html.erb
administrate-0.2.0.rc1 app/views/fields/has_one/_form.html.erb
administrate-0.1.5 app/views/fields/has_one/_form.html.erb
administrate-0.1.4 app/views/fields/has_one/_form.html.erb
administrate-0.1.3 app/views/fields/has_one/_form.html.erb