diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-05 13:45:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-05 13:45:10 +0000 |
commit | c4fd1750f703a7649f0b3b52b25cf32fa532b5b3 (patch) | |
tree | f94e5de3b00a6eb8c2b6741f847c2bb8d75625f7 /app/views/roles | |
parent | a23450fe08f367a1d4a03e937c3f8e90f83383fe (diff) | |
download | redmine-c4fd1750f703a7649f0b3b52b25cf32fa532b5b3.tar.gz redmine-c4fd1750f703a7649f0b3b52b25cf32fa532b5b3.zip |
Adds permission to edit and delete issues by role/tracker (#285).
git-svn-id: http://svn.redmine.org/redmine/trunk@15466 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r-- | app/views/roles/_form.html.erb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/roles/_form.html.erb b/app/views/roles/_form.html.erb index c8a3a61cc..8b7b94c73 100644 --- a/app/views/roles/_form.html.erb +++ b/app/views/roles/_form.html.erb @@ -64,7 +64,9 @@ <div id="role-permissions-trackers"> <h3><%= l(:label_issue_tracking) %></h3> -<% permissions = %w(view_issues add_issues) %> +<% permissions = %w(view_issues add_issues edit_issues add_issue_notes delete_issues) %> + +<div class="autoscroll"> <table class="list"> <thead> <tr> @@ -87,7 +89,7 @@ <% end %> </tr> <% Tracker.sorted.all.each do |tracker| %> - <tr> + <tr class="<%= cycle("odd", "even") %>"> <td class="name"><%= tracker.name %></td> <% permissions.each do |permission| %> <td><%= check_box_tag "role[permissions_tracker_ids][#{permission}][]", @@ -100,6 +102,7 @@ <% end %> </tbody> </table> +</div> <% permissions.each do |permission| %> <%= hidden_field_tag "role[permissions_tracker_ids][#{permission}][]", '' %> |