Sha256: e01fe26a8b08d43e86ffd1645b68f530245a174404a5feca1fd48064c240bbc4
Contents?: true
Size: 704 Bytes
Versions: 2
Compression:
Stored size: 704 Bytes
Contents
<%# # Carrierwave Form Partial This partial renders a file input field. ## 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 %> <br /> <%- if field.uploaded? -%> <%= render 'fields/carrierwave/preview', field: field %> <%= link_to field.filename, field.url, title: field.filename, target: '_blank' %> <%- else -%> <span>No file uploaded yet</span> <%- end -%> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-carrierwave-0.0.2 | app/views/fields/carrierwave/_form.html.erb |
administrate-field-carrierwave-0.0.1 | app/views/fields/carrierwave/_form.html.erb |