%= title l(:label_confirmation) %> <%= form_tag(project_path(@project_to_destroy), :method => :delete) do %>
<%=h @project_to_destroy %>
<%=l(:text_project_destroy_confirmation)%>
<% if @project_to_destroy.descendants.any? %>
<%= l(:text_subprojects_destroy_warning,
content_tag('strong', @project_to_destroy.descendants.collect{|p| p.to_s}.join(', '))).html_safe %>
<% end %>
<%= l :text_project_destroy_enter_identifier, identifier: @project_to_destroy.identifier %>
<%= text_field_tag 'confirm' %>
<%= submit_tag l(:button_delete) %> <%= link_to l(:button_cancel), User.current.admin? ? admin_projects_path : projects_path %>
<% end %>