%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%> <%= error_messages_for 'project' %>
<%= f.text_field :name, :required => true, :size => 60 %>
<% unless @project.allowed_parents.compact.empty? %><%= label(:project, :parent_id, Project.human_attribute_name(:parent)) %><%= parent_project_select_tag(@project) %>
<% end %><%= f.text_area :summary, :rows => 2, :class => 'wiki-edit' %>
<%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %>
<%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen? %>
<% unless @project.identifier_frozen? %>
<%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %>
<% end %>
<%= f.text_field :homepage, :size => 60 %>
<%= f.check_box :is_public %>
<%= wikitoolbar_for 'project_description' %> <% @project.custom_field_values.each do |value| %><%= custom_field_tag_with_label :project, value %>
<% end %> <%# former timelines hook: %> <% extend TimelinesHelper %><%= f.select :timelines_project_type_id, options_for_project_types, :include_blank => true %>
<%= f.select :timelines_responsible_id, options_for_responsible(@project), :include_blank => true %>
<%= call_hook(:view_projects_form, :project => @project, :form => f) %>