课程列表

<%= render 'tab_syllabuses_courses' %>

课程列表

<%= form_tag({}, :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder => '课程名称' %> <%= submit_tag l(:button_apply), :class => "small", :name => nil %> <%= link_to l(:button_clear), {:controller => 'admin', :action => 'syllabuses'}, :class => 'icon icon-reload' %>
<% end %>  
<% @syllabuses.each do |syllabus| %> <% courses = syllabus.courses.not_deleted %> <% courses.each do |course| %> <% end %> <% end %>
序号 课程名称 班级名称 创建老师 <%=l(:field_created_on)%> 开源检索
<%= syllabus.id %> <%= render :partial => 'admin/rename_syllabus_title', :locals => {:syllabus => syllabus} %> <%= link_to syllabus.user.show_name, user_path(syllabus.user) %> <%= format_date(syllabus.created_at) %>
<%= course.id %> <%= render :partial => 'admin/rename_course_name', :locals => {:course => course} %> <%= link_to(course.teacher.show_name, user_path(course.teacher)) %> <%= format_date(course.created_at) %> <%= course.try(:os_allow) == 0 ? "允许" : "不允许" %>