<% object = [] %> <% object << 'course' %> <%= error_messages_for object %> <% unless @course.new_record? %>

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

<% end %>

<%= f.fields_for @course do |m| %> <% unless @course.nil? %>

<%= l(:label_class_period) %> *   <%= text_field_tag :class_period, @course.class_period, :placeholder => "#{l(:lable_input_class)}", :maxlength => 5 %>   <%= l(:label_class_hour) %>

<% else %>

<%= l(:label_class_period) %> *   <%= text_field_tag :class_period, nil, :placeholder => "#{l(:lable_input_class)}", :maxlength => 5 %> <%= l(:label_class_hour) %>

<% end %>

<% if @course != nil %>
<%= l(:label_term) %> *   <%= select_tag :time,options_for_select(course_time_option,@course.time), {} %> <%= select_tag :term,options_for_select(course_term_option,@course.term || cur_course_term),{} %>
<% end %>

<%= l(:text_command) %> <% end %>

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

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

<%= wikitoolbar_for 'course_description' %> <% @course.custom_field_values.each do |value| %>

<%= custom_field_tag_with_label :course, value %>

<% end %> <%= call_hook(:view_courses_form, :course => @course, :form => f) %> <% unless @course.extra_frozen? %> <% content_for :header_tags do %> <%= javascript_include_tag 'course_identifier' %> <% end %> <% end %>