Sha256: 93e9b08462498b22d21fc0e3d86cede9e374a143580659a5f9b02112ce95d22a
Contents?: true
Size: 866 Bytes
Versions: 8
Compression:
Stored size: 866 Bytes
Contents
<%# # Carrierwave Form Partial This partial renders a file input field and a summary of the current attachment(s) for this attribute ## Local variables: - `f`: A Rails form generator, used to help create the appropriate input fields. - `field`: An instance of Administrate::Field::Carrierwave. A wrapper around the attribute pulled from the database. %> <div class="field-unit__label"> <%= f.label field.attribute %> </div> <div class="field-unit__field"> <%= f.file_field field.attribute, multiple: field.multiple? %> <%= f.text_field "remote_#{field.attribute}_url", placeholder: "Remote URL" if field.remote_url? %> <br /> <%= render 'fields/carrierwave/show', field: field %> <%= f.label "remove_#{field.attribute}" do %> <%= f.check_box "remove_#{field.attribute}" %> Remove <%= field.attribute %> <% end if field.remove? %> </div>
Version data entries
8 entries across 8 versions & 1 rubygems