%= error_messages_for 'project' %>
<%= f.text_field :name, :required => true %>
<% if admin_loggedin? %><%= f.select :parent_id, (@root_projects.collect {|p| [p.name, p.id]}), { :include_blank => true } %>
<% end %><%= f.text_area :description, :required => true, :cols => 60, :rows => 3 %>
<%= f.text_field :homepage, :size => 40 %>
<%= f.check_box :is_public %>
<% for @custom_value in @custom_values %><%= custom_field_tag_with_label @custom_value %>
<% end %><% for custom_field in @custom_fields %> <%= check_box_tag "custom_field_ids[]", custom_field.id, (@project.custom_fields.include? custom_field) %> <%= custom_field.name %> <% end %>