Sha256: af085922ade2ff55ec9ea46df57ac1a142c13d2b3d6575d8141597ed2fc56859
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
<div class="zone-container"> <div class="zone-label"> <%= properties['label'] %> </div> <div class="controls" data-turbolinks="false"> <div class="zone"> <div id='<%= "#{attribute.singularize}_dropzone" %>' data-max-files="<%= properties['max_files'] %>"> <i class="fa fa-cloud-upload"></i> <div><%= I18n.t('dropzone.drag_here') %></div> <span><%= I18n.t('dropzone.or') %></span> <div class="selectFile"> <a href="#" class="btn"><%= I18n.t('dropzone.choose_files') %></a> </div> <p><%= I18n.t('dropzone.size_limit', file_size: '10 MB') %></p> <% f.object.send(attribute).each do |attrib| %> <%= hidden_field_tag "#{f.object.class.to_controller_name.singularize}[#{attribute.singularize}_ids][]", attrib.id, data: { file_url: attrib.file_url(:thumb), file_size: attrib.file_size, file_name: attrib.file_identifier } %> <% end %> </div> </div> </div> </div>
Version data entries
5 entries across 5 versions & 1 rubygems