OpenProject is the leading open source project management software.
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.
openproject/app/views/issues/destroy.html.erb

24 lines
1.2 KiB

<h2><%= l(:label_confirmation) %></h2>
<%= form_tag do %>
<%= @issues.collect {|i| hidden_field_tag 'ids[]', i.id } %>
<div class="box">
<p><strong><%=
if @hours > 0 && !@entries.blank?
l(:text_destroy_time_and_cost_entries_question, :hours => number_with_precision(@hours, :precision => 2), :cost_entries => summarized_cost_entries(@entries, false))
elsif @hours > 0
l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2))
else
l(:text_destroy_cost_entries_question, :cost_entries => summarized_cost_entries(@entries, false))
end
%></strong></p>
<p>
<label><%= radio_button_tag 'todo', 'destroy', true %> <%= l(:text_destroy_time_and_cost_entries) %></label><br />
<label><%= radio_button_tag 'todo', 'nullify', false %> <%= l(:text_assign_time_and_cost_entries_to_project) %></label><br />
<label><%= radio_button_tag 'todo', 'reassign', false, :onchange => 'if (this.checked) { $("reassign_to_id").focus(); }' %> <%= l(:text_reassign_time_and_cost_entries) %></label>
<%= text_field_tag 'reassign_to_id', params[:reassign_to_id], :size => 6, :onfocus => '$("todo_reassign").checked=true;' %>
</p>
</div>
<%= submit_tag l(:button_apply) %>
<% end %>