Sha256: 7c9bb031534f85e816b866afa9741615de005451c0c6efc9e8d72e797f352cee

Contents?: true

Size: 1.46 KB

Versions: 4

Compression:

Stored size: 1.46 KB

Contents

<div class="">
  <div
   class="dropzone dropzone-default dz-clickable"
   data-controller="dropzone"
   data-dropzone-max-file-size="<%= field.drop_max_file_size? %>"
   data-dropzone-max-files="<%= field.drop_max_file? %>"
   data-dropzone-accepted-files="<%= field.drop_accepted_files? %>"
   data-dropzone-add-remove-links="hello">
    <%= f.file_field field.attribute, multiple: field.many?, direct_upload: field.direct?, data: { target: 'dropzone.inputdropzone' } %>
    <div class="dropzone-msg dz-message needsclick text-gray-600">
      <h3 class="dropzone-msg-title">Drag & Drop ici ou cliquer pour selectionner</h3>
      <span class="dropzone-msg-desc text-sm">
        <%= field.drop_max_file_size? %>
        MB par fichier. Les fichiers autorisés :
        <%= field.drop_accepted_files? %>. <br>
        <% if field.many? %>
          A maximum of <%= field.drop_max_file? %> files allowed for eacch creatiion or edition. <br>
          Want more assets? Save it and edit it again and add <%= field.drop_max_file? %> extras assets.
        <% else %>
          A maximum of <%= field.drop_max_file? %> files allowed for eacch creatiion or edition. <br>
          I case of edition, the previous asset will be deleted only <%= field.drop_max_file? %> allowed.
        <% end %>
      </span>
    </div>
    <div id="tpl" style='display:none'>
      <%= render partial: 'fields/active_storage/drop_js/dropjs_template'%>
    </div>
    <%#= render 'ulFordropjs' %>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
viniBaxter-field-active_storage-300.0.18 app/views/fields/active_storage/drop_js/_dropjs_items.html.erb
viniBaxter-field-active_storage-300.0.17 app/views/fields/active_storage/drop_js/_dropjs_items.html.erb
viniBaxter-field-active_storage-300.0.15 app/views/fields/active_storage/drop_js/_dropjs_items.html.erb
viniBaxter-field-active_storage-300.0.11 app/views/fields/active_storage/drop_js/_dropjs_items.html.erb