socialforge/app/views/projects/destroy.html.erb

20 lines
726 B
Plaintext
Raw Normal View History

2015-10-08 11:13:17 +08:00
<div class="project_r_h">
<h2 class="project_h2"><%=l(:label_confirmation)%></h2>
</div>
2013-08-01 10:33:49 +08:00
<div class="warning">
2015-10-08 11:13:17 +08:00
<p><strong><h3><%=h @project_to_destroy %></h3></strong>
<%=l(:text_project_destroy_confirmation)%>
2013-08-01 10:33:49 +08:00
2015-10-08 11:13:17 +08: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(', ')))).html_safe %>
<% end %>
</p>
<p>
2013-08-01 10:33:49 +08:00
<%= form_tag(project_path(@project_to_destroy), :method => :delete) do %>
2015-10-08 11:13:17 +08:00
<label><%= check_box_tag 'confirm', 1, checked = true %> <%= l(:general_text_Yes) %></label>
<%= submit_tag l(:button_delete) %>
2013-08-01 10:33:49 +08:00
<% end %>
2015-10-08 11:13:17 +08:00
</p>
2013-08-01 10:33:49 +08:00
</div>