summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-22 19:21:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-22 19:21:02 +0000
commit1f89dad23aab9a4736e05d66ae468c0253ab9255 (patch)
tree0ceb6e0568d883ebcb21b78d1df62a053a3137bc /app/views
parent3de4a1d788e3ad9f1fd888725449634fb9333dd2 (diff)
downloadredmine-1f89dad23aab9a4736e05d66ae468c0253ab9255.tar.gz
redmine-1f89dad23aab9a4736e05d66ae468c0253ab9255.zip
Adds watchers selection on new issue form (#398). Permission 'add issue watchers' required.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2164 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/_form.rhtml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml
index 419536fee..dcc554101 100644
--- a/app/views/issues/_form.rhtml
+++ b/app/views/issues/_form.rhtml
@@ -48,6 +48,14 @@
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
<% end %>
+<% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
+<p><label>Watchers</label>
+<% @issue.project.users.sort.each do |user| -%>
+<label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watcher_user_ids.include?(user.id) %> <%=h user %></label>
+<% end -%>
+</p>
+<% end %>
+
<%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
<%= wikitoolbar_for 'issue_description' %>