<% html_title(l(:dmsf)) %>
<% path = @file.folder.nil? ? [] : @file.folder.dmsf_path %>

<%= render(:partial => "/dmsf/path", :locals => {:path => path}) %> / <%= link_to(h(@file.title), {:controller => "dmsf_files", :action => "show", :id=> @file}) %> <%= image_tag("notify.png", :plugin => "redmine_dmsf", :title => l(:title_notifications_active)) if @file.notification %>

<% unless DmsfFile.allowed_target_projects_on_copy.blank? form_tag({:action => "create", :id => @file}, :id => "copyForm") do |f| %>

<%= select_tag("target_project_id", project_tree_options_for_select(DmsfFile.allowed_target_projects_on_copy, :selected => @target_project), :onchange => remote_function(:url => { :action => 'new' }, :method => :get, :update => 'content', :with => "Form.serialize('copyForm')")) %>

<%= label_tag("target_folder_id", l(:label_target_folder) + ":") %> <%= select_tag("target_folder_id", options_for_select(DmsfFolder.directory_tree(@target_project), :selected => (@target_folder.id unless @target_folder.nil?))) %>

<%= submit_tag(l(:button_copy)) %> <% if User.current.allowed_to?(:file_manipulation, @project) %> <% end %> <% end %> <% end %> <% content_for :header_tags do %> <%= stylesheet_link_tag "dmsf", :plugin => "redmine_dmsf" %> <%= robot_exclusion_tag %> <%= javascript_include_tag "jquery-1.6.1.min.js", :plugin => "redmine_dmsf" %> <% end %>