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 1.0KB

12345678910111213141516171819202122
  1. <%= wiki_page_breadcrumb(@page) %>
  2. <h2><%= @page.pretty_title %></h2>
  3. <%= form_tag({}, :method => :delete) do %>
  4. <div class="box">
  5. <p><strong><%= l(:text_wiki_page_destroy_question, :descendants => @descendants_count) %></strong></p>
  6. <p><label><%= radio_button_tag 'todo', 'nullify', true %> <%= l(:text_wiki_page_nullify_children) %></label><br />
  7. <label><%= radio_button_tag 'todo', 'destroy', false %> <%= l(:text_wiki_page_destroy_children) %></label>
  8. <% if @reassignable_to.any? %>
  9. <br />
  10. <label><%= radio_button_tag 'todo', 'reassign', false %> <%= l(:text_wiki_page_reassign_children) %></label>:
  11. <%= label_tag "reassign_to_id", l(:description_wiki_subpages_reassign), :class => "hidden-for-sighted" %>
  12. <%= select_tag 'reassign_to_id', wiki_page_options_for_select(@reassignable_to),
  13. :onclick => "$('#todo_reassign').prop('checked', true);" %>
  14. <% end %>
  15. </p>
  16. </div>
  17. <%= submit_tag l(:button_apply) %>
  18. <%= link_to l(:button_cancel), :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title %>
  19. <% end %>