|
|
@ -15,9 +15,18 @@
|
|
|
|
<tr class="tag-discipline-item tag-discipline-item-<%= tag.id %>">
|
|
|
|
<tr class="tag-discipline-item tag-discipline-item-<%= tag.id %>">
|
|
|
|
<td><%= index + 1 %></td>
|
|
|
|
<td><%= index + 1 %></td>
|
|
|
|
<td class="text-left"><%= tag.name %></td>
|
|
|
|
<td class="text-left"><%= tag.name %></td>
|
|
|
|
<td><%= check_box_tag :subject,!tag.subject,tag.subject,remote:true,data:{id:tag.id},class:"tag-discipline-source-form" %></td>
|
|
|
|
<td>
|
|
|
|
<td><%= check_box_tag :shixun,!tag.shixun,tag.shixun,remote:true,data:{id:tag.id},class:"tag-discipline-source-form" %></td>
|
|
|
|
<% disabled = !(tag.sub_discipline&.subject && tag.discipline&.subject) %>
|
|
|
|
<td><%= check_box_tag :question,!tag.question,tag.question,remote:true,data:{id:tag.id},class:"tag-discipline-source-form" %></td>
|
|
|
|
<%= check_box_tag :subject,!tag.subject,tag.subject,disabled:disabled,remote:true,data:{id:tag.id},class:"tag-discipline-source-form" %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<% disabled = !(tag.sub_discipline&.shixun && tag.discipline&.shixun) %>
|
|
|
|
|
|
|
|
<%= check_box_tag :shixun,!tag.shixun,tag.shixun,disabled:disabled,remote:true,data:{id:tag.id},class:"tag-discipline-source-form" %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<% disabled = !(tag.sub_discipline&.question && tag.discipline&.question) %>
|
|
|
|
|
|
|
|
<%= check_box_tag :question,!tag.question,tag.question,disabled:disabled,remote:true,data:{id:tag.id},class:"tag-discipline-source-form" %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<%= link_to '编辑', edit_admins_tag_discipline_path(tag), remote: true, class: 'action' %>
|
|
|
|
<%= link_to '编辑', edit_admins_tag_discipline_path(tag), remote: true, class: 'action' %>
|
|
|
|
<%= delete_link '删除', admins_tag_discipline_path(tag, element: ".tag-discipline-item-#{tag.id}"), class: 'delete-tag-discipline-action' %>
|
|
|
|
<%= delete_link '删除', admins_tag_discipline_path(tag, element: ".tag-discipline-item-#{tag.id}"), class: 'delete-tag-discipline-action' %>
|
|
|
|