Sha256: f3377b0133738f983b6e2a899d9a0a978b20192adb76b950175a6bb13db38027
Contents?: true
Size: 824 Bytes
Versions: 5
Compression:
Stored size: 824 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?, direct_upload: field.direct? %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems