<% if !params[:course_id].nil? %>
公共资源
我的资源
<% elsif !params[:project_id].nil? %>
公共资源
我的资源
<% elsif !params[:subfield_file_id].nil? %>
公共资源
我的资源
<% end %>
<%#= form_tag( url_for(:controller => 'users', :action => 'import_resources_search', :id => User.current.id, :type => 1),
:remote => true , :method => 'get', :id => 'resource_search_form') do %>
<%#= hidden_field_tag(:type,type.nil? ? 1 : type) %>
<%# end %>
<%= form_tag( url_for({:controller => 'users', :action => 'import_into_container',
:mul_id => params[:project_id].nil? ? (params[:course_id].nil? ? params[:subfield_file_id] : params[:course_id]) : params[:project_id],
:mul_type => params[:project_id].nil? ? (params[:course_id].nil? ? "SubfieldFile" : "Course") : "Project"}),
:method => 'post', :id => 'resource_import_container_form') do %>
<% @attachments.each do |attach| %>
<% end %>
<% end %>