From 12c904e891c5bb94b85ed20403746cbaa4186063 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 30 Jun 2016 18:30:14 +0000 Subject: [PATCH] Moves the submit button out the div. git-svn-id: http://svn.redmine.org/redmine/trunk@15594 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/destroy.html.erb | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/app/views/projects/destroy.html.erb b/app/views/projects/destroy.html.erb index ca5ae1723..11137f75e 100644 --- a/app/views/projects/destroy.html.erb +++ b/app/views/projects/destroy.html.erb @@ -1,19 +1,24 @@ <%= title l(:label_confirmation) %> +<%= form_tag(project_path(@project_to_destroy), :method => :delete) do %>
-

<%=h @project_to_destroy %>
-<%=l(:text_project_destroy_confirmation)%> +

<%=h @project_to_destroy %>

+

+<%=l(:text_project_destroy_confirmation)%> <% if @project_to_destroy.descendants.any? %> -
<%= l(:text_subprojects_destroy_warning, +
+ <%= l(:text_subprojects_destroy_warning, content_tag('strong', @project_to_destroy.descendants.collect{|p| p.to_s}.join(', '))).html_safe %> <% end %>

- <%= form_tag(project_path(@project_to_destroy), :method => :delete) do %> - - <%= submit_tag l(:button_delete) %> - <%= link_to l(:button_cancel), :controller => 'admin', :action => 'projects' %> - <% end %> +

+ +

+ <%= submit_tag l(:button_delete) %> + <%= link_to l(:button_cancel), :controller => 'admin', :action => 'projects' %> +

+<% end %> -- 2.39.5