Slight change to the project combo for adding membership on user administration screen.
All projects are listed, and the ones that the user belongs to are disabled. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/work@2301 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
aaeba2dd20
commit
f1a123add6
3 files changed
+6
-4
No files matched your search
@@ -25,9 +25,11 @@ module UsersHelper
|
||||
end
|
||||
|
||||
# Options for the new membership projects combo-box
|
||||
def projects_options_for_select(projects)
|
||||
def options_for_membership_project_select(user, projects)
|
||||
options = content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---")
|
||||
options << project_tree_options_for_select(projects)
|
||||
options << project_tree_options_for_select(projects) do |p|
|
||||
{:disabled => (user.projects.include?(p))}
|
||||
end
|
||||
options
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user