You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

destroy.html.erb 822B

12345678910111213141516171819202122232425262728293031
  1. <%= title l(:label_confirmation) %>
  2. <%= form_tag(project_path(@project_to_destroy), :method => :delete) do %>
  3. <div class="warning">
  4. <p><strong><%=h @project_to_destroy %></strong></p>
  5. <p>
  6. <%=l(:text_project_destroy_confirmation)%>
  7. <% if @project_to_destroy.descendants.any? %>
  8. <br />
  9. <%= l(:text_subprojects_destroy_warning,
  10. content_tag('strong', @project_to_destroy.descendants.collect{|p| p.to_s}.join(', '))).html_safe %>
  11. <% end %>
  12. </p>
  13. <p>
  14. <%= l :text_project_destroy_enter_identifier, identifier: @project_to_destroy.identifier %>
  15. </p>
  16. <p>
  17. <label for="confirm"><%= l :field_identifier %></label>
  18. <%= text_field_tag 'confirm' %>
  19. </p>
  20. </div>
  21. <p>
  22. <%= submit_tag l(:button_delete) %>
  23. <%= link_to l(:button_cancel), User.current.admin? ? admin_projects_path : projects_path %>
  24. </p>
  25. <% end %>