|
|
|
@ -1,28 +1,22 @@
|
|
|
|
|
<table class="table table-hover text-center sub-discipline-list-table">
|
|
|
|
|
<table class="table table-hover text-center sub-repertoire-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 @sub_disciplines.present? %>
|
|
|
|
|
<% @sub_disciplines.each_with_index do |sub, index| %>
|
|
|
|
|
<tr class="sub-discipline-item sub-discipline-item-<%= sub.id %>">
|
|
|
|
|
<% if @sub_repertoires.present? %>
|
|
|
|
|
<% @sub_repertoires.each_with_index do |sub, index| %>
|
|
|
|
|
<tr class="sub-repertoire-item sub-repertoire-item-<%= sub.id %>">
|
|
|
|
|
<td><%= index + 1 %></td>
|
|
|
|
|
<td class="text-left">
|
|
|
|
|
<span><%= link_to sub.name, admins_tag_disciplines_path(sub_discipline_id: sub), :title => sub.name %></span>
|
|
|
|
|
<span><%= link_to sub.name, admins_tag_repertoires_path(sub_repertoire_id: sub), :title => sub.name %></span>
|
|
|
|
|
</td>
|
|
|
|
|
<td><%= check_box_tag :subject,!sub.subject,sub.subject,disabled:!sub.discipline&.subject,remote:true,data:{id:sub.id},class:"sub-discipline-source-form" %></td>
|
|
|
|
|
<td><%= check_box_tag :shixun,!sub.shixun,sub.shixun,disabled:!sub.discipline&.shixun,remote:true,data:{id:sub.id},class:"sub-discipline-source-form" %></td>
|
|
|
|
|
<td><%= check_box_tag :question,!sub.question,sub.question,disabled:!sub.discipline&.question,remote:true,data:{id:sub.id},class:"sub-discipline-source-form" %></td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= link_to '编辑', edit_admins_sub_discipline_path(sub), remote: true, class: 'action' %>
|
|
|
|
|
<%= delete_link '删除', admins_sub_discipline_path(sub, element: ".sub-discipline-item-#{sub.id}"), class: 'delete-sub-discipline-action' %>
|
|
|
|
|
<%= link_to '编辑', edit_admins_sub_repertoire_path(sub), remote: true, class: 'action' %>
|
|
|
|
|
<%= delete_link '删除', admins_sub_repertoire_path(sub, element: ".sub-repertoire-item-#{sub.id}"), class: 'delete-sub-repertoire-action' %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|