summaryrefslogtreecommitdiffstats
path: root/app/views/issue_categories
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-15 16:52:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-15 16:52:32 +0000
commitfa969504d4529ca9b2ceadf3c56f09b171c9170e (patch)
treeb0f3feff09ffafd1c5d8339b228eab4e18fedb3f /app/views/issue_categories
parent3c6ddc9cecc250b3853025ca8b10a964bed0ff97 (diff)
downloadredmine-fa969504d4529ca9b2ceadf3c56f09b171c9170e.tar.gz
redmine-fa969504d4529ca9b2ceadf3c56f09b171c9170e.zip
A category with assigned issue can now be deleted. 2 options are proposed:
* remove assignments (issues are set to 'no category') * reassign issues to another category (if at least an other category exists) If no issue is assigned to the category, it's deleted silently. git-svn-id: http://redmine.rubyforge.org/svn/trunk@733 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issue_categories')
-rw-r--r--app/views/issue_categories/destroy.rhtml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/issue_categories/destroy.rhtml b/app/views/issue_categories/destroy.rhtml
new file mode 100644
index 000000000..a563736e2
--- /dev/null
+++ b/app/views/issue_categories/destroy.rhtml
@@ -0,0 +1,15 @@
+<h2><%=l(:label_issue_category)%>: <%=h @category.name %></h2>
+
+<% form_tag({}) do %>
+<div class="box">
+<p><strong><%= l(:text_issue_category_destroy_question, @issue_count) %></strong></p>
+<p><%= radio_button_tag 'todo', 'nullify', true %> <%= l(:text_issue_category_destroy_assignments) %><br />
+<% if @categories.size > 0 %>
+<%= radio_button_tag 'todo', 'reassign', false %> <%= l(:text_issue_category_reassign_to) %>:
+<%= select_tag 'reassign_to_id', options_from_collection_for_select(@categories, 'id', 'name') %></p>
+<% end %>
+</div>
+
+<%= submit_tag l(:button_apply) %>
+<%= link_to l(:button_cancel), :controller => 'projects', :action => 'settings', :id => @project, :tab => 'categories' %>
+<% end %>