<%=l(:label_project_new)%>

<%= labelled_form_for @project, :url => { :action => "copy" } do |f| %> <%= render :partial => 'form', :locals => { :f => f } %>
<%= toggle_checkboxes_link('.box input[type="checkbox"][name="only[]"]') %><%= l(:button_copy) %> <%= call_hook :view_projects_copy_only_items, project: @source_project, f: f %> <%= hidden_field_tag 'only[]', '' %>
<% @project.tracker_ids.each do |tracker_id| %> <%= hidden_field_tag 'project[tracker_ids][]', tracker_id %> <% end %> <% @project.issue_custom_field_ids.each do |issue_custom_field_id| %> <%= hidden_field_tag 'project[issue_custom_field_ids][]', issue_custom_field_id %> <% end %> <%= submit_tag l(:button_copy) %> <% end %>