<td style="text-align: center;">
  <%= course.id %>
</td>
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=course.name%>'>
            <span>
              <%= link_to(course.name, course_path(course.id)) %>
            </span>
</td>
<td align="center">
  <%= link_to(course.teacher.show_name, user_path(course.teacher)) %>
</td>
<td align="center">
  <%= course.class_period %>
</td>
<td class="center">
  <%= checked_image course.is_public? %>
</td>
<td class="center">
  <%= course.is_delete == 0 ? '正常' : '归档' %>
</td>
<td class="center">
  <%= format_date(course.created_at) %>
</td>
<td class="center">
  <%= course.updated_at.strftime('%Y-%m-%d %H:%M:%S') %>
</td>
<td class="center">
  <%= select_tag :syllabus_id,options_for_select(course_syllabus_option(course.teacher),course.syllabus_id), {:id=>"new_syllabus_id_#{course.id}", :class=>"course_syllabus_input", :onchange=>"select_syllabus(#{course.id});"}%>
</td>
<td class="center">
  <a href="javascript:void(0)" onclick="alert_new_syllabus(<%=course.id %>, 0)">新建课程</a>
  <%#= link_to "新建课程", admin_create_syllabus_path%>
</td>