|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<span class="badge badge-pill badge-info excellent-badge" style="<%= subject.excellent? ? '' : 'display:none' %>">金课</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td><%= display_text subject.repertoire&.name %></td>
|
|
|
|
|
<td><%= display_text subject.status == 2 ? "已发布" : "未发布" %></td>
|
|
|
|
|
<td><%= display_text subject.public == 2 ? "已公开" : ((subject.public == 1 && subject.status == 2) ? "审核中" : "未发布") %></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}") %>
|
|
|
|
|
</td>
|
|
|
|
@ -26,4 +26,22 @@
|
|
|
|
|
multiple: true,
|
|
|
|
|
maximumSelectionLength: 3,
|
|
|
|
|
placeholder: '请选择课程体系'});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".action-container").on("change", '.subject-mobile-form', function () {
|
|
|
|
|
var s_id = $(this).attr("data-id");
|
|
|
|
|
var s_value = $(this).val();
|
|
|
|
|
var s_name = $(this).attr("name");
|
|
|
|
|
var json = {};
|
|
|
|
|
var s_index = $(this).parent("td").siblings(".shixun-line-no").text();
|
|
|
|
|
json[s_name] = s_value;
|
|
|
|
|
json["page_no"] = s_index;
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/admins/subject_settings/update_mobile_show?subject_id=" + s_id,
|
|
|
|
|
type: "POST",
|
|
|
|
|
dataType:'script',
|
|
|
|
|
data: json
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|