Sha256: 34a882eb20ff1a1870ce9644d532ccfef9404f8bef322059413456b0403b4d40

Contents?: true

Size: 596 Bytes

Versions: 7

Compression:

Stored size: 596 Bytes

Contents

<%#
# Image Form Partial

This partial renders an input element for image attributes.
By default, the input is a text field for the image's URL.

## Local variables:

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

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

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
administrate-field-image-1.1.0 app/views/fields/image/_form.html.erb
administrate-field-image-1.0.0 app/views/fields/image/_form.html.erb
administrate-field-image-0.0.2 app/views/fields/image/_form.html.erb
administrate-field-image-0.0.1 app/views/fields/image/_form.html.erb
administrate-0.1.5 app/views/fields/image/_form.html.erb
administrate-0.1.4 app/views/fields/image/_form.html.erb
administrate-0.1.3 app/views/fields/image/_form.html.erb