destroy.html.erb
22 lines
| 1.0 KiB
| text/plain
|
TextLexer
|
r6062 | <%= wiki_page_breadcrumb(@page) %> | ||
|
r2584 | <h2><%=h @page.pretty_title %></h2> | ||
|
r9346 | <%= form_tag({}, :method => :delete) do %> | ||
|
r2584 | <div class="box"> | ||
<p><strong><%= l(:text_wiki_page_destroy_question, :descendants => @descendants_count) %></strong></p> | ||||
<p><label><%= radio_button_tag 'todo', 'nullify', true %> <%= l(:text_wiki_page_nullify_children) %></label><br /> | ||||
<label><%= radio_button_tag 'todo', 'destroy', false %> <%= l(:text_wiki_page_destroy_children) %></label> | ||||
<% if @reassignable_to.any? %> | ||||
<br /> | ||||
<label><%= radio_button_tag 'todo', 'reassign', false %> <%= l(:text_wiki_page_reassign_children) %></label>: | ||||
|
r7576 | <%= label_tag "reassign_to_id", l(:description_wiki_subpages_reassign), :class => "hidden-for-sighted" %> | ||
|
r2584 | <%= select_tag 'reassign_to_id', wiki_page_options_for_select(@reassignable_to), | ||
|
r7268 | :onclick => "$('todo_reassign').checked = true;" %> | ||
|
r2584 | <% end %> | ||
</p> | ||||
</div> | ||||
<%= submit_tag l(:button_apply) %> | ||||
|
r4182 | <%= link_to l(:button_cancel), :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title %> | ||
|
r2584 | <% end %> | ||