diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-17 20:50:37 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-05-17 20:50:37 +0000 |
commit | e1d6bfbdcc1de030a4ae59e6f5a80f3d003cabe0 (patch) | |
tree | 31683b98b2301e7bbd89059edcba8489258ab95f /app/views/projects | |
parent | 883aa3b5cca1645f2aae353f4f180f77c5693c7e (diff) | |
download | redmine-e1d6bfbdcc1de030a4ae59e6f5a80f3d003cabe0.tar.gz redmine-e1d6bfbdcc1de030a4ae59e6f5a80f3d003cabe0.zip |
Adds projects bulk delete (#36691).
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21592 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/bulk_destroy.html.erb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/projects/bulk_destroy.html.erb b/app/views/projects/bulk_destroy.html.erb new file mode 100644 index 000000000..43c6dcf51 --- /dev/null +++ b/app/views/projects/bulk_destroy.html.erb @@ -0,0 +1,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>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 %> + |