diff --git a/app/views/projects/destroy.rhtml b/app/views/projects/destroy.rhtml index 4531cb84..a1913c11 100644 --- a/app/views/projects/destroy.rhtml +++ b/app/views/projects/destroy.rhtml @@ -1,14 +1,16 @@
<%=h @project_to_destroy.name %>
-<%=l(:text_project_destroy_confirmation)%>
<%=h @project_to_destroy %>
+<%=l(:text_project_destroy_confirmation)%>
+<% if @project_to_destroy.children.any? %>
+
<%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.children.sort.collect{|p| p.to_s}.join(', ')))) %>
+<% end %>
+
<% form_tag({:controller => 'projects', :action => 'destroy', :id => @project_to_destroy}) do %> - <%= hidden_field_tag "confirm", 1 %> + <%= submit_tag l(:button_delete) %> <% end %>
- -