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? %>
|
|
|
|
<br /><%= l(:text_subprojects_destroy_warning, content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))) %>
|
2008-04-26 14:20:48 +04:00
|
|
|
<% end %>
|
|
|
|
</p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p>
|
2007-05-27 21:42:04 +04:00
|
|
|
<% form_tag({:controller => 'projects', :action => 'destroy', :id => @project_to_destroy}) 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>
|