You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.6 KiB
33 lines
1.6 KiB
5 years ago
|
<table class="table table-hover text-center discipline-list-table">
|
||
|
<thead class="thead-light">
|
||
|
<tr>
|
||
|
<th width="6%">序号</th>
|
||
|
<th width="54%" class="text-left">课程方向</th>
|
||
|
<th width="8%">实践课程</th>
|
||
|
<th width="8%">实训</th>
|
||
|
<th width="8%">题库</th>
|
||
|
<th width="16%">操作</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% if @disciplines.present? %>
|
||
|
<% @disciplines.each_with_index do |discipline, index| %>
|
||
|
<tr class="discipline-item discipline-item-<%= discipline.id %>">
|
||
|
<td><%= index + 1 %></td>
|
||
|
<td class="text-left">
|
||
|
<span><%= link_to discipline.name, admins_sub_disciplines_path(discipline_id: discipline), :title => discipline.name %></span>
|
||
|
</td>
|
||
|
<td><%= check_box_tag :subject,!discipline.subject,discipline.subject,remote:true,data:{id:discipline.id},class:"discipline-source-form" %></td>
|
||
|
<td><%= check_box_tag :shixun,!discipline.shixun,discipline.shixun,remote:true,data:{id:discipline.id},class:"discipline-source-form" %></td>
|
||
|
<td><%= check_box_tag :question,!discipline.question,discipline.question,remote:true,data:{id:discipline.id},class:"discipline-source-form" %></td>
|
||
|
<td>
|
||
|
<%= link_to '编辑', edit_admins_discipline_path(discipline), remote: true, class: 'action' %>
|
||
|
<%= delete_link '删除', admins_discipline_path(discipline, element: ".discipline-item-#{discipline.id}"), class: 'delete-discipline-action' %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
<% else %>
|
||
|
<%= render 'admins/shared/no_data_for_table' %>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|