Sha256: 91d947ebc2ed98feae0c4ce468126ca09a5985c93a1162ef91a56fd9a4718427
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
<%= component_fields_for @record do |f| %> <div class="label"> <%= f.label field %> <div class="field_error"> <%= f.object.errors[field.name.to_sym].first %> </div> </div> <div class="carrierwave"> <span class="file_input"> <%= f.file_field field.name, field.input_options %> <span class="file_input_overlay"><%= t('.choose file') %></span> </span> <span class="or"> <%= t('.or') %> </span> <%= f.text_field "remote_#{field.name}_url", field.input_options %> </div> <% if f.object.send("#{field.name}?") %> <div class="remove_file"> <%= f.check_box "remove_#{field.name}" %> <%= f.label "remove_#{field.name}" %> </div> <% end %> <div class="file_link"> <%= field.render :index, parent_controller, f.object %> <div> <%= f.hidden_field "#{field.name}_cache" %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.1.1 | app/components/carrierwave/form.html.erb |