Sha256: 2bee0f0f771940d1c550a4c0c3d9166424130fb7d2fd49a364907ebfbc2c7ce9
Contents?: true
Size: 596 Bytes
Versions: 2
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.file_field field.attribute %> </div>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
administrate-field-image-1.2.0 | app/views/fields/image/_form.html.erb |
administrate-field-active_storage-0.0.2 | app/views/fields/active_storage/_form.html.erb |