diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-11 17:53:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-11 17:53:15 +0000 |
commit | aa0d01b3d9f5ae5634eda73e1becd75cc4668f3e (patch) | |
tree | 8a2a59ba70b18777cf35940ff01b961709405893 /app/views/roles | |
parent | 5fd891aa72243e7fff19a05d080c921ae420eeeb (diff) | |
download | redmine-aa0d01b3d9f5ae5634eda73e1becd75cc4668f3e.tar.gz redmine-aa0d01b3d9f5ae5634eda73e1becd75cc4668f3e.zip |
Adds an issues visibility level on roles (#7412).
It can be set so that users only see their own issues (created or assigned).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5416 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r-- | app/views/roles/_form.rhtml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/roles/_form.rhtml b/app/views/roles/_form.rhtml index a167907e8..232a72582 100644 --- a/app/views/roles/_form.rhtml +++ b/app/views/roles/_form.rhtml @@ -1,15 +1,16 @@ <%= error_messages_for 'role' %> -<% unless @role.builtin? %> <div class="box"> +<% unless @role.builtin? %> <p><%= f.text_field :name, :required => true %></p> <p><%= f.check_box :assignable %></p> +<% end %> +<p><%= f.select :issues_visibility, Role::ISSUES_VISIBILITY_OPTIONS.collect {|v| [l(v.last), v.first]} %></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 %> <h3><%= l(:label_permissions) %></h3> <div class="box" id="permissions"> |