summaryrefslogtreecommitdiffstats
path: root/app/views/roles
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-15 08:27:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-15 08:27:38 +0000
commitaec989707edc47161192eba74f1a88123b12360a (patch)
tree5a810a6a3fb4fb76b9cfdb439eedc666bf4d049a /app/views/roles
parent993b60d61eb927cff21ea0b06c1631eb986f6a51 (diff)
downloadredmine-aec989707edc47161192eba74f1a88123b12360a.tar.gz
redmine-aec989707edc47161192eba74f1a88123b12360a.zip
Workflow copy:
* added the ability the copy an existing workflow when creating a new role (closes #841) * use a single raw insert statement to copy tracker/role workflow rather than instantiating hundreds/thousands of objects git-svn-id: http://redmine.rubyforge.org/svn/trunk@1252 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r--app/views/roles/_form.rhtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/roles/_form.rhtml b/app/views/roles/_form.rhtml
index b77cbacdf..58dc2af41 100644
--- a/app/views/roles/_form.rhtml
+++ b/app/views/roles/_form.rhtml
@@ -4,6 +4,10 @@
<div class="box">
<p><%= f.text_field :name, :required => true %></p>
<p><%= f.check_box :assignable %></p>
+<% if @role.new_record? && @roles.any? %>
+<p><label><%= l(:label_copy_workflow_from) %></label>
+<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name)) %></p>
+<% end %>
</div>
<% end %>