<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Foundation (OPF) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: Copyright (C) 2006-2013 Jean-Philippe Lang Copyright (C) 2010-2013 the ChiliProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 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 :project_type_id, options_for_project_types, :include_blank => true %>

<%= f.select :responsible_id, options_for_responsible(@project), :include_blank => true %>

<%= call_hook(:view_projects_form, :project => @project, :form => f) %>
<% if @project.new_record? %>
<%= l(:label_module_plural) %> (<%= check_all_links 'project_modules' %>) <% Redmine::AccessControl.available_project_modules.each do |m| %> <% end %> <%= hidden_field_tag 'project[enabled_module_names][]', '' %> <%= javascript_tag 'observeProjectModules()' %>
<% end %> <% if (@project.new_record? || @project.module_enabled?('issue_tracking')) %> <% unless @types.empty? %> <% if renderTypes %>
<%=l(:label_type_plural)%> (<%= check_all_links 'project_types' %>) <%= render :partial => 'projects/types_form', :locals => { :f => f } %> <%= hidden_field_tag 'project[type_ids][]', '' %>
<% end %> <% end %> <% unless @issue_custom_fields.empty? %>
<%=l(:label_custom_field_plural)%> (<%= check_all_links 'project_issue_custom_fields' %>) <% @issue_custom_fields.each do |custom_field| %> <% end %> <%= hidden_field_tag 'project[work_package_custom_field_ids][]', '' %>
<% end %> <% end %>