<%= error_messages_for 'project' %> <% unless @project.new_record? %>

<%= render :partial=>"avatar/avatar_form",:locals=> {source:@project} %>

<% end %>

<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %>

<%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>

<%= f.text_field :identifier, :required => true, :size => 60, :style => "width:488px;", :disabled => @project.identifier_frozen?, :maxlength => Project::IDENTIFIER_MAX_LENGTH %> <% 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, :style => "width:488px;margin-left: 10px;" %>

<%= f.check_box :is_public, :style => "margin-left:10px;" %><%= l(:label_public_info) %>

<%= f.text_field :project_type, :value => 0 %>

<%= 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) %> <% 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)%> <% @trackers.each do |tracker| %> <% end %> <%= hidden_field_tag 'project[tracker_ids][]', '' %>
<% end %> <% unless @issue_custom_fields.empty? %>
<%=l(:label_custom_field_plural)%> <% @issue_custom_fields.each do |custom_field| %> <% end %> <%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %>
<% end %> <% end %> <% unless @project.identifier_frozen? %> <% content_for :header_tags do %> <%= javascript_include_tag 'project_identifier' %> <% end %> <% end %> <% if !User.current.admin? && @project.inherit_members? && @project.parent && User.current.member_of?(@project.parent) %> <%= javascript_tag do %> $(document).ready(function() { $("#project_inherit_members").change(function(){ if (!$(this).is(':checked')) { if (!confirm("<%= escape_javascript(l(:text_own_membership_delete_confirmation)) %>")) { $("#project_inherit_members").attr("checked", true); } } }); }); <% end %> <% end %>