<%=l(:label_attachment_new)%>

<% attachmenttypes = course.attachmenttypes %> <%= error_messages_for 'attachment' %> <%= form_tag(course_files_path(course), :multipart => true,:remote => true,:method => :post,:name=>"upload_form", :class => "tabular") do %>

<% if attachmenttypes.any? %> <%= l(:attachment_type) %> <%= select_tag "attachment_type", options_from_collection_for_select(attachmenttypes, "id","typeName", 2), {style: 'width:100px'} %> <% end %>

<%=l(:label_attachment_plural)%><%= render :partial => 'attachments/form' %>

<%= submit_tag l(:button_add) %> <% end %>