<%= error_messages_for 'project' %>

<%= f.text_field :name, :required => true, :size => 60 %>

<% unless @project.allowed_parents.compact.empty? %>

<%= label(:project, :parent_id, l(:field_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) %> <% 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 %> <%= 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 @trackers.empty? %>
<%=l(:label_tracker_plural)%> (<%= check_all_links 'project_trackers' %>) <% @trackers.each do |tracker| %> <% end %> <%= hidden_field_tag 'project[tracker_ids][]', '' %>
<% 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[issue_custom_field_ids][]', '' %>
<% end %> <% end %>