Prettier parent project combo-box and prevent calls to Project#level.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/work@2163 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-12-21 12:25:03 +00:00
parent 161e32889f
commit 311a005af7
2 changed files with 8 additions and 3 deletions
@@ -5,7 +5,7 @@
<p><%= f.text_field :name, :required => true %><br /><em><%= l(:text_caracters_maximum, 30) %></em></p>
<% if User.current.admin? && !@project.possible_parents.empty? %>
<p><%= f.select :parent_id, project_hierarchy_collection_for_select(@project.possible_parents), { :include_blank => true } %></p>
<p><label><%= l(:field_parent) %></label><%= parent_project_select_tag(@project) %></p>
<% end %>
<p><%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %></p>