<%=labelled_form_for @new_course do |f| %>
-
<%= image_tag(url_to_avatar(@course), id: "avatar_image", :width =>"60", :height =>"60",:alt=>"上传图片")%>
-
课程名称不能为空
-
-
<%= select_tag :time,options_for_select(course_time_option(@new_course.time),@new_course.time), {} %>
<%= select_tag :term,options_for_select(course_term_option,@new_course.term || cur_course_term),{} %>
-
<%= select_tag :end_time,options_for_select(course_time_option(@new_course.end_time),@new_course.end_time), {} %>
<%= select_tag :end_term,options_for_select(course_term_option,@new_course.end_term || cur_course_term),{} %>
仅针对跨越多个学期的班级,否则不用修改。
-
学生或其他成员申请加入课程时候需要使用该口令,该口令可以由老师在课堂上公布。
-
-
id="course_is_public" name="course[is_public]" type="checkbox" value="<%=@course.is_public.to_i %>">
(选中后课外用户可见该课程,否则仅对课内成员可见)
-
<% end %>