<%= link_to User.current.show_real_name, user_path(User.current),:class => "color-grey-9" %> > <%= link_to '课堂', courses_path,:class => "color-grey-9" %> > <%= link_to '新建课程',:class => "color-grey-9" %>

新建课程

课程的核心是授课大纲,您可以为一门课程创建多个不同的班级
<%= labelled_form_for @syllabus do |f| %>
  • <%#= select_tag :major_level,options_for_select(major_level_option,@syllabus.major_level), {:id=>"major_level", :class=>"fl task-height-40 task-form-80"} %>

    专科

    本科

    研究生

    请选择课程所属专业层级
  • <% DisciplineCategory.where(:major_level => 3).each do |dis| %>

    <%= dis.name %>

    <% end %>
    <%#= select_tag :discipline_category_id,options_for_select(discipline_category_option,@syllabus.discipline_category_id), {:id=>"discipline_category_id", :class=>"fl task-height-40 task-form-80"} %>
    请选择课程所属学科门类
  • <% FirstLevelDiscipline.where(:discipline_category_id => 27).each do |fir_dis| %>

    <%= fir_dis.name %>

    <% end %>
    <%#= select_tag :first_level_discipline_id,options_for_select(first_level_discipline_option,@syllabus.first_level_discipline_id), {:id=>"first_level_discipline_id", :class=>"fl task-height-40 task-form-80"} %>
    请选择课程所属一级学科
  • <% Major.where(:first_level_discipline_id => 213).each do |major| %>

    <%= major.name %>

    <% end %>
    <%#= select_tag :major_id,options_for_select(syllabus_major_option,@syllabus.major_id), {:id=>"major_id", :class=>"fl task-height-40 task-form-80"} %>
    请选择课程所属专业
  • 课程名称不能为空且至少有两个字符 同一个用户不能创建同名课程
  • 专业选修课

    学科必修课

    公共必修课

    实践选修课

    实践必修课

    <%#= select_tag :syllabus_type,options_for_select(syllabus_type_option,@syllabus.syllabus_type), {:id=>"syllabus_type", :class=>"fl task-height-40 task-form-80"} %>
  • 保存 <%= link_to "取消",user_path(User.current),:class => "task-btn fr mr10"%>
<% end %>