<% object = [] %> <% object << 'project' %> <% object << 'course' %> <%= error_messages_for object %>

<%= 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.fields_for @course do |m| %>

<%= m.text_field :password, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %>

<%= l(:text_command) %>

<% unless @course.nil? %> <% if @course.time == 2008 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2009 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2010 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2011 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2012 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2013 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2014 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2015 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2016 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% elsif @course.time == 2017 %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% else %>

<%= l(:label_term) %> *   <%= select_tag 'time', " ".html_safe %>

<% end %> <% end %>
<% unless @course.nil? %> <% if @course.term == l(:label_spring) %>

<%= select_tag 'term', " ".html_safe %>

<% elsif @course.term == l(:label_summer)%>

<%= select_tag 'term', " ".html_safe %>

<% elsif @course.term == l(:label_autumn)%>

<%= select_tag 'term', " ".html_safe %>

<% elsif @course.term == l(:label_winter)%>

<%= select_tag 'term', " ".html_safe %>

<% else %>

<%= select_tag 'term', " ".html_safe %>

<% end %> <% end %>

<% end %>

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

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

<%= 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) %> <% 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 %>