summaryrefslogtreecommitdiffstats
path: root/app/views/projects/bulk_destroy.html.erb
blob: e2d4881a25ffad897f5f0a7623a60cf4e9d7e35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%= title l(:label_confirmation) %>

<%= form_tag(bulk_destroy_projects_path(ids: @projects.map(&:id)), method: :delete) do %>
<div class="warning">

<p><%= simple_format l :text_projects_bulk_destroy_head %></p>

<% @projects.each do |project| %>
  <p><%= l(:label_project) %>: <strong><%= project.to_s %></strong>
    <% if project.descendants.any? %>
      <br />
      <%= l :text_subprojects_bulk_destroy, project.descendants.map(&:to_s).join(', ') %>
    <% end %>
  </p>
<% end %>

<p><%= l :text_projects_bulk_destroy_confirm, yes: l(:general_text_Yes) %></p>
<p><%= text_field_tag 'confirm' %></p>

</div>

<p>
  <%= submit_tag l(:button_delete), class: 'btn-alert btn-small' %>
  <%= link_to l(:button_cancel), admin_projects_path %>
</p>
<% end %>