% 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) %> |
<%= l(:label_class_period) %> <%= l(:label_class_period) %> * <%= l(:label_class_period) %> * <%= text_field_tag :class_period, nil, :placeholder => "#{l(:lable_input_class)}", :maxlength => 5 %> <%= l(:label_class_hour) %> |
<% if @course != nil %>
|
<%= l(:text_command) %> <% end %>
<%= f.check_box :is_public, :style => "margin-left:10px;" %> <%= l(:label_course_public_info) %>
<%= f.check_box :open_student, :style => "margin-left:10px;" %> <%= l(:label_course_open_student_info) %>
<%= wikitoolbar_for 'course_description' %> <% @course.custom_field_values.each do |value| %><%= custom_field_tag_with_label :course, 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 %>