Sha256: 3d07bf9c254576097e0f873dd07ef2e62e7d8958dd87c2ae9bdb020a20d7c804

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administrate-0.8.1 app/views/fields/polymorphic/_form.html.erb
administrate-0.8.0 app/views/fields/polymorphic/_form.html.erb
administrate-0.7.0 app/views/fields/polymorphic/_form.html.erb