Sha256: 919906a0a94380f7e701464b46f37ce2cbcfc80fbd44fb26622455860a93fa6f
Contents?: true
Size: 794 Bytes
Versions: 1
Compression:
Stored size: 794 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"> <% if field.attached? %> <%= render partial: 'fields/active_storage/items', locals: { field: field, removable: field.destroyable? } %> <br /> Add: <% end %> <%= f.file_field field.attribute, multiple: field.many? %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-active_storage-0.1.4 | app/views/fields/active_storage/_form.html.erb |