<%= safe_join([link_to_attachment_container(@container), l(:label_edit_attachments)].compact, ' ยป ') %>

<%= error_messages_for *@attachments %> <%= form_tag(container_attachments_path(@container), :method => 'patch') do %> <%= back_url_hidden_field_tag %>
<% @attachments.each do |attachment| %> <% end %>
<%= attachment.filename_was %> (<%= number_to_human_size attachment.filesize %>) <%= attachment.author %>, <%= format_time(attachment.created_on) %>
<%= text_field_tag "attachments[#{attachment.id}][filename]", attachment.filename, :size => 40 %> <%= text_field_tag "attachments[#{attachment.id}][description]", attachment.description, :size => 80, :placeholder => l(:label_optional_description) %>

<%= submit_tag l(:button_save) %> <%= link_to l(:button_cancel), back_url if back_url.present? %>

<% end %>