|
|
@ -5,7 +5,7 @@
|
|
|
|
<span class="badge badge-pill badge-info excellent-badge" style="<%= subject.excellent? ? '' : 'display:none' %>">金课</span>
|
|
|
|
<span class="badge badge-pill badge-info excellent-badge" style="<%= subject.excellent? ? '' : 'display:none' %>">金课</span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td><%= display_text subject.repertoire&.name %></td>
|
|
|
|
<td><%= display_text subject.repertoire&.name %></td>
|
|
|
|
<td><%= display_text subject.subject_level_system&.name %></td>
|
|
|
|
<td><%= display_text subject.status == 2 ? "已发布" : "未发布" %></td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<%= select_tag(:sub_disciplines, options_for_select(@sub_disciplines, subject.sub_disciplines.pluck(:id)),multiple:true,class:"form-control subject-setting-form",data:{id:subject.id},id:"tags-chosen-#{subject.id}") %>
|
|
|
|
<%= select_tag(:sub_disciplines, options_for_select(@sub_disciplines, subject.sub_disciplines.pluck(:id)),multiple:true,class:"form-control subject-setting-form",data:{id:subject.id},id:"tags-chosen-#{subject.id}") %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
@ -16,6 +16,8 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td><%= subject.student_count %></td>
|
|
|
|
<td><%= subject.student_count %></td>
|
|
|
|
<td class="action-container">
|
|
|
|
<td class="action-container">
|
|
|
|
|
|
|
|
<%= check_box_tag :show_mobile, !subject.show_mobile, subject.show_mobile, remote: true,
|
|
|
|
|
|
|
|
data: {id: subject.id, toggle: "tooltip", placement: "top"}, class: "subject-mobile-form mr10", title: "小程序端显示" %>
|
|
|
|
<%= link_to('编辑', edit_admins_subject_path(subject), remote: true, class: 'edit-action') %>
|
|
|
|
<%= link_to('编辑', edit_admins_subject_path(subject), remote: true, class: 'edit-action') %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|