Sha256: 375209c5fdda9afaeceb8187ba03828b71a0b4b1516bea2bba2f180dd2365945

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

<%= render partial: 'generic_files/upload/agreement' %>
<%= render partial: 'generic_files/upload/alerts' %>
<div class="well">
  <%= form_tag(sufia.generic_files_path, id: 'browse_everything_form', method: 'post') do %>
      <%= render partial: 'generic_files/upload/tos_checkbox' %>
      <%= hidden_field_tag(:batch_id, @batch_id) %>
      <%= button_tag(t('sufia.upload.browse_everything.browse_files_button'), type: 'button', class: 'btn btn-lg btn-success', id: "browse-btn",
        'data-toggle' => 'browse-everything', 'data-route' => browse_everything_engine.root_path,
        'data-target' => '#browse_everything_form' ) %>
      <%= button_tag("Submit selected files", type: 'submit', class: 'activate-submit btn btn-lg btn-primary', id: "submit-btn") %>
  <% end %>

  <p id="status">0 items selected</p>
</div>
<script>
  // Update the count in #status element when user selects files.
  $(document).ready(function() {
    $('#browse-btn').browseEverything()
      .done(function(data) {
        $('#status').html(data.length.toString() + " <%= t('sufia.upload.browse_everything.files_selected')%>")
        $('#submit-btn').html("Submit "+data.length.toString() + " selected files")
      })
  });
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sufia-6.0.0.rc4 app/views/generic_files/_browse_everything.html.erb
sufia-6.0.0.rc3 app/views/generic_files/_browse_everything.html.erb