Mercurial > hg > soundsoftware-site
annotate app/views/wiki/destroy.rhtml @ 338:89b3acb833d1 live
Merge
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 30 Mar 2011 13:37:44 +0100 |
parents | 94944d00e43c |
children |
rev | line source |
---|---|
Chris@0 | 1 <h2><%=h @page.pretty_title %></h2> |
Chris@0 | 2 |
chris@37 | 3 <% form_tag({}, :method => :delete) do %> |
Chris@0 | 4 <div class="box"> |
Chris@0 | 5 <p><strong><%= l(:text_wiki_page_destroy_question, :descendants => @descendants_count) %></strong></p> |
Chris@0 | 6 <p><label><%= radio_button_tag 'todo', 'nullify', true %> <%= l(:text_wiki_page_nullify_children) %></label><br /> |
Chris@0 | 7 <label><%= radio_button_tag 'todo', 'destroy', false %> <%= l(:text_wiki_page_destroy_children) %></label> |
Chris@0 | 8 <% if @reassignable_to.any? %> |
Chris@0 | 9 <br /> |
Chris@0 | 10 <label><%= radio_button_tag 'todo', 'reassign', false %> <%= l(:text_wiki_page_reassign_children) %></label>: |
Chris@0 | 11 <%= select_tag 'reassign_to_id', wiki_page_options_for_select(@reassignable_to), |
Chris@0 | 12 :onclick => "$('todo_reassign').checked = true;" %> |
Chris@0 | 13 <% end %> |
Chris@0 | 14 </p> |
Chris@0 | 15 </div> |
Chris@0 | 16 |
Chris@0 | 17 <%= submit_tag l(:button_apply) %> |
chris@37 | 18 <%= link_to l(:button_cancel), :controller => 'wiki', :action => 'show', :project_id => @project, :id => @page.title %> |
Chris@0 | 19 <% end %> |