1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 17:31:14 +00:00
redmine/app/views/issues/destroy.html.erb
Jean-Philippe Lang f0c9c0ef23 Issue destroy : Reassign time issue autocomplete (#24692).
Patch by David Côté-Tremblay and Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16165 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-08 22:47:32 +00:00

19 lines
1.1 KiB
Plaintext

<h2><%= l(:label_confirmation) %></h2>
<%= form_tag({}, :method => :delete) do %>
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id, :id => nil)}.join("\n").html_safe %>
<div class="box">
<p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p>
<p>
<label><%= radio_button_tag 'todo', 'destroy', true %> <%= l(:text_destroy_time_entries) %></label><br />
<label><%= radio_button_tag 'todo', 'nullify', false %> <%= l(:text_assign_time_entries_to_project) %></label><br />
<% if @project %>
<label><%= radio_button_tag 'todo', 'reassign', false, :onchange => 'if (this.checked) { $("#reassign_to_id").focus(); }' %> <%= l(:text_reassign_time_entries) %></label>
<%= text_field_tag 'reassign_to_id', params[:reassign_to_id], :size => 6, :onfocus => '$("#todo_reassign").attr("checked", true);' %>
<%= javascript_tag "observeAutocompleteField('reassign_to_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project)}')" %>
<% end %>
</p>
</div>
<%= submit_tag l(:button_apply) %>
<% end %>