@@ -1,19 +1,24 | |||||
1 | <%= title l(:label_confirmation) %> |
|
1 | <%= title l(:label_confirmation) %> | |
2 |
|
2 | |||
|
3 | <%= form_tag(project_path(@project_to_destroy), :method => :delete) do %> | |||
3 | <div class="warning"> |
|
4 | <div class="warning"> | |
4 |
<p><strong><%=h @project_to_destroy %></strong>< |
|
5 | <p><strong><%=h @project_to_destroy %></strong></p> | |
5 | <%=l(:text_project_destroy_confirmation)%> |
|
|||
6 |
|
6 | |||
|
7 | <p> | |||
|
8 | <%=l(:text_project_destroy_confirmation)%> | |||
7 | <% if @project_to_destroy.descendants.any? %> |
|
9 | <% if @project_to_destroy.descendants.any? %> | |
8 | <br /><%= l(:text_subprojects_destroy_warning, |
|
10 | <br /> | |
|
11 | <%= l(:text_subprojects_destroy_warning, | |||
9 | content_tag('strong', @project_to_destroy.descendants.collect{|p| p.to_s}.join(', '))).html_safe %> |
|
12 | content_tag('strong', @project_to_destroy.descendants.collect{|p| p.to_s}.join(', '))).html_safe %> | |
10 | <% end %> |
|
13 | <% end %> | |
11 | </p> |
|
14 | </p> | |
12 | <p> |
|
15 | <p> | |
13 | <%= form_tag(project_path(@project_to_destroy), :method => :delete) do %> |
|
16 | <label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label> | |
14 | <label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label> |
|
|||
15 | <%= submit_tag l(:button_delete) %> |
|
|||
16 | <%= link_to l(:button_cancel), :controller => 'admin', :action => 'projects' %> |
|
|||
17 | <% end %> |
|
|||
18 | </p> |
|
17 | </p> | |
19 | </div> |
|
18 | </div> | |
|
19 | ||||
|
20 | <p> | |||
|
21 | <%= submit_tag l(:button_delete) %> | |||
|
22 | <%= link_to l(:button_cancel), :controller => 'admin', :action => 'projects' %> | |||
|
23 | </p> | |||
|
24 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now