Sha256: 8cb5ce11e40a2e3d0dcbe267fccbe3af2d335a42a68646ce18e7c0d69131e749

Contents?: true

Size: 678 Bytes

Versions: 11

Compression:

Stored size: 678 Bytes

Contents

<%#
# Polymorphic Form Partial

This partial renders an input element for polymorphic relationships.

At the moment, polymorphic 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::Polymorphic][1].
  A wrapper around the polymorphic belongs_to relationship
  pulled from the database.

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

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

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