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:
@@ -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}>#{ '» ' * 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user