<%=labelled_form_for @new_course do |f| %>
-
<%= image_tag(url_to_avatar(@course), id: "avatar_image", :width =>"60", :height =>"60",:alt=>"上传图片")%>
-
<%= select_tag :syllabus_id,options_for_select(syllabus_option,@course.syllabus_id), {:id=>"new_syllabus_id", :class=>"syllabus_input"} %>
请选择课程大纲
-
班级名称不能为空
-
-
<%= select_tag :time,options_for_select(course_time_option(@new_course.time),@new_course.time), {:id=>"new_time"} %>
<%= select_tag :term,options_for_select(course_term_option,@new_course.term || cur_course_term),{:id=>"new_term"} %>
-
<%= select_tag :end_time,options_for_select(course_time_option(@new_course.end_time),@new_course.end_time), {:id=>"new_end_time"} %>
<%= select_tag :end_term,options_for_select(course_term_option,@new_course.end_term || cur_course_term),{:id=>"new_end_term"} %>
仅针对跨越多个学期的班级,否则不用修改。
-
-
id="course_is_public" name="course[is_public]" type="checkbox" value="<%=@course.is_public.to_i %>">
(选中后班级外用户可见该课程,否则仅对班级内成员可见)
-
<% end %>