% if @errors %>
<%= n_('This file couldn\'t be saved', 'These %{num} files couldn\'t be saved', @errors.size) % { :num => @errors.size } %>
<%= _('There were problems with the following files:') %>
<% for file in @uploaded_files %>
<% for msg in file.errors.full_messages %>
- <%= file.name %> : <%= msg %>
<% end %>
<% end %>
<% end %>
<%= _('Publish media') %>
<%= _("Select the files you want to upload (max size %s):") % UploadedFile.max_size.to_humanreadable %>
<%= _('Photos/Videos/Audio/Documents') %>
<% form_for('uploaded_file', :url => { :action => 'upload_files' }, :html => {:multipart => true}) do |f| %>
<%= render :partial => 'upload_file' %>
<%= hidden_field_tag('parent_id', @parent.id) if @parent %>
<%= hidden_field_tag('back_to', @back_to) if @back_to %>
<% button_bar do %>
<%= add_upload_file_field _('More files') %>
<% if @back_url %>
<%= submit_button :save, _('Upload'), :cancel => @back_url %>
<% else %>
<%= submit_button :save, _('Upload'), :cancel => {:action => (@parent ? 'view' : 'index'), :id => @parent } %>
<% end %>
<% end %>
<% end %>