summaryrefslogtreecommitdiffstats
path: root/app/views/issue_categories
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-29 17:21:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-29 17:21:37 +0000
commit87bad767c686c96d4bb1d83443749302c977e1bf (patch)
tree1338e1a1e6080445d7055e0698aab122de79d4db /app/views/issue_categories
parentf816d4f3784409ff505f4f88ad46e7f7fb447a96 (diff)
downloadredmine-87bad767c686c96d4bb1d83443749302c977e1bf.tar.gz
redmine-87bad767c686c96d4bb1d83443749302c977e1bf.zip
Each category can now be associated to a user, so that new issues in that category are automatically assigned to that user.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@577 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issue_categories')
-rw-r--r--app/views/issue_categories/_form.rhtml11
-rw-r--r--app/views/issue_categories/edit.rhtml6
2 files changed, 8 insertions, 9 deletions
diff --git a/app/views/issue_categories/_form.rhtml b/app/views/issue_categories/_form.rhtml
index 765b8f53d..dc62c2000 100644
--- a/app/views/issue_categories/_form.rhtml
+++ b/app/views/issue_categories/_form.rhtml
@@ -1,7 +1,6 @@
-<%= error_messages_for 'issue_category' %>
-
-<!--[form:issue_category]-->
-<p><label for="issue_category_name"><%l(:field_name)%></label>
-<%= text_field 'issue_category', 'name' %></p>
-<!--[eoform:issue_category]-->
+<%= error_messages_for 'category' %>
+<div class="box">
+<p><%= f.text_field :name, :size => 30, :required => true %></p>
+<p><%= f.select :assigned_to_id, @project.users.collect{|u| [u.name, u.id]}, :include_blank => true %></p>
+</div>
diff --git a/app/views/issue_categories/edit.rhtml b/app/views/issue_categories/edit.rhtml
index 998dfbe79..54a1f0c66 100644
--- a/app/views/issue_categories/edit.rhtml
+++ b/app/views/issue_categories/edit.rhtml
@@ -1,6 +1,6 @@
<h2><%=l(:label_issue_category)%></h2>
-<% form_tag({:action => 'edit', :id => @category}, :class => "tabular") do %>
- <%= render :partial => 'form' %>
- <%= submit_tag l(:button_save) %>
+<% labelled_tabular_form_for :category, @category, :url => { :action => 'edit', :id => @category } do |f| %>
+<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
+<%= submit_tag l(:button_create) %>
<% end %>