<h2><%= l(:label_confirmation) %></h2>

<%= form_tag({}, :method => :delete) do %>
  <%= hidden_field_tag('back_url', params[:back_url]) unless params[:back_url].blank? %>
  <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id, id: nil)}.join("\n").html_safe %>
  <div class="gray-background">
    <p><strong><%= l(:text_destroy_time_entries_question, :hours => format_hours(@hours)).html_safe %></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) %>
          <%= easy_modal_selector_field_tag('Issue', 'link_with_subject', 'reassign_to_id', 'reassign_to_id', [], :url => {:modal_project_id => @project}, :multiple => false) %></label>
      <% end %>
    </p>
  </div>
  <p>
    <%= submit_tag l(:button_apply), :class => 'button-positive' %>
  </p>
<% end %>
