Sha256: 4365206735a5d1441d27fcdad0bf7835685b8ce9b6171ec8b8d39bba705a1c83
Contents?: true
Size: 1.46 KB
Versions: 5
Compression:
Stored size: 1.46 KB
Contents
<%= render partial: 'generic_files/upload/agreement' %> <div class="alert alert-success"> <%= t("sufia.upload.cloud_timeout_message", contact_href: link_to(t("sufia.upload.alert.contact_href_text"), sufia.contact_form_index_path)) %> </div> <div class="well"> <%= form_tag(sufia.generic_files_path, id: 'browse_everything_form', method: 'post') do %> <% if Sufia.config.upload_to_collection %> <%= render partial: 'generic_files/upload/to_collection' %> <% end %> <%= 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
5 entries across 5 versions & 1 rubygems