Sha256: 5af7fc19f387e09725782de0be69922ae35ede3a1e889426e6a5b97403e40932
Contents?: true
Size: 901 Bytes
Versions: 18
Compression:
Stored size: 901 Bytes
Contents
<%# The following params are the variables that can be used in this partial. @param form [Wallaby::FormBuilder] custom form object that adds a few helper methods and delegate missing methods to the view @param object [Wallaby::ResourceDecorator] decorator instance which wraps the resource (e.g. ActiveRecord) instance @param field_name [String] name of the field @param value [Object] value of the field @param metadata [Hash] metadata of the field %> <div class="form-group <%= form.error_class field_name %>"> <%= form.label field_name, metadata[:label] %> <div class="row"> <div class="col-sm-12"> <%= form.label field_name, class: 'btn btn-default' do %> <%= form.file_field field_name, class: 'sr-only' %> <%= fa_icon 'upload' %> <%= t 'labels.upload' %> <% end %> </div> </div> <%= form.error_messages field_name %> <%= hint_of metadata %> </div>
Version data entries
18 entries across 3 versions & 1 rubygems