2007-03-12 20:59:02 +03:00
|
|
|
<h2><%=l(:label_confirmation)%></h2>
|
2008-04-26 14:20:48 +04:00
|
|
|
<div class="warning">
|
|
|
|
<p><strong><%=h @project_to_destroy %></strong><br />
|
|
|
|
<%=l(:text_project_destroy_confirmation)%>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2009-01-24 14:31:15 +03:00
|
|
|
<% if @project_to_destroy.descendants.any? %>
|
2012-07-27 03:45:17 +04:00
|
|
|
<br /><%= l(:text_subprojects_destroy_warning,
|
|
|
|
content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))).html_safe %>
|
2008-04-26 14:20:48 +04:00
|
|
|
<% end %>
|
|
|
|
</p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p>
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= form_tag(project_path(@project_to_destroy), :method => :delete) do %>
|
2008-04-26 14:20:48 +04:00
|
|
|
<label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= submit_tag l(:button_delete) %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
2008-04-26 14:20:48 +04:00
|
|
|
</div>
|