Changes project selection boxes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/work@2277 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-01-17 13:07:40 +00:00
parent 79c7fc6303
commit 4c7e1629a3
3 changed files with 15 additions and 16 deletions
@@ -35,11 +35,7 @@ module ProjectsHelper
end
def parent_project_select_tag(project)
options = '<option></option>'
project_tree(project.possible_parents) do |p, i|
selected = (project.parent == p)
options << "<option value='#{p.id}' #{ selected ? 'selected' : nil}>#{ '&#187; ' * i }#{h(p)}</option>"
end
options = '<option></option>' + project_tree_options_for_select(project.possible_parents, :selected => project.parent)
content_tag('select', options, :name => 'project[parent_id]')
end