<%# Copyright © 2012 The Pennsylvania State University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. %>

Upload

Note: You must agree to <%= t('sufia.deposit_agreement') %> before starting your upload.
<%=sufia.batch_edit_path(@batch_noid)%>
<%= t('sufia.upload_tooltip') %>
You have successfully uploaded some of your files. Either continue to upload or edit use the links below to abandon the rest of your added files.

<%= link_to 'Add Descriptions', sufia.batch_edit_path(@batch_noid), :class=>'btn' %>

There was a problem during upload. Please click the "Start Upload" button or <%= link_to 'start over', sufia.new_generic_file_path %>
One or more files did not upload successfully. To continue using the files uploaded use one of the links below.
<%= link_to 'Add Descriptions', sufia.batch_edit_path(@batch_noid), :class=>'btn' %>
<%= form_for(@generic_file, :url => sufia.generic_files_path, :html => {:multipart => true, :class => 'form-horizontal well', :id => 'fileupload'}) do |f| %> <%= hidden_field_tag(:total_upload_size, 0) %> <%= hidden_field_tag(:relative_path) %> <%= hidden_field_tag(:batch_id, @batch_noid) %>
Select files... <% ua = request.env['HTTP_USER_AGENT'] %> <% if !!(ua =~ /Chrome/) %> Select folder... <% end %>

<% end %>