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.1KB

1234567891011121314151617181920
  1. <h2><%= l(:label_confirmation) %></h2>
  2. <%= form_tag({}, :method => :delete) do %>
  3. <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id, :id => nil)}.join("\n").html_safe %>
  4. <div class="box">
  5. <p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p>
  6. <p>
  7. <label><%= radio_button_tag 'todo', 'destroy', true %> <%= l(:text_destroy_time_entries) %></label><br />
  8. <% unless Setting.timelog_required_fields.include?('issue_id') %>
  9. <label><%= radio_button_tag 'todo', 'nullify', false %> <%= l(:text_assign_time_entries_to_project) %></label><br />
  10. <% end %>
  11. <% if @project %>
  12. <label><%= radio_button_tag 'todo', 'reassign', false, :onchange => 'if (this.checked) { $("#reassign_to_id").focus(); }' %> <%= l(:text_reassign_time_entries) %></label>
  13. <%= text_field_tag 'reassign_to_id', params[:reassign_to_id], :size => 6, :onfocus => '$("#todo_reassign").attr("checked", true);' %>
  14. <%= javascript_tag "observeAutocompleteField('reassign_to_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project)}')" %>
  15. <% end %>
  16. </p>
  17. </div>
  18. <%= submit_tag l(:button_apply) %>
  19. <% end %>