dev_aliyun_beta
SylorHuang 5 years ago
parent e55606426a
commit 6b85bdf141

@ -1,3 +1,9 @@
$(document).on('turbolinks:load', function() {
if ($('body.admins-shixun-settings-index-page').length > 0) {
}
});
function update_change(target) {
var s_id = $(target).attr("data-id");
var s_value = $(target).val();

@ -22,6 +22,8 @@
<li>
<%= sidebar_item_group('#shixun-submenu', '实训管理', icon: 'window-restore') do %>
<li><%= sidebar_item(admins_shixuns_path, '实训列表', icon: 'jsfiddle', controller: 'admins-shixuns') %></li>
<li><%= sidebar_item(admins_shixun_settings_path, '实训配置', icon: 'cog', controller: 'admins-shixun_settings') %></li>
<li><%= sidebar_item(admins_mirror_repositories_path, '镜像管理', icon: 'cubes', controller: 'admins-mirror_repositories') %></li>
<% end %>
</li>
@ -42,12 +44,6 @@
<!-- <li><%#= sidebar_item('#', '自动授权列表', icon: 'id-card', controller: '') %></li>-->
<% end %>
</li>
<li>
<%= sidebar_item_group('#shixuns-menu', '实训列表', icon: 'jsfiddle') do %>
<li><%= sidebar_item(admins_shixuns_path, '精选实训', icon: 'fire', controller: 'admins-shixuns') %></li>
<li><%= sidebar_item(admins_shixun_settings_path, '实训配置', icon: 'cog', controller: 'admins-shixun_settings') %></li>
<% end %>
</li>
<li>
<%= sidebar_item_group('#apply-review-submenu', '审核', icon: 'gavel') do %>

@ -2,11 +2,11 @@
<td><%= shixun.identifier %></td>
<td class="text-left">
<span>
<%= link_to overflow_hidden_span(shixun.name,width:200), "/shixuns/#{shixun.identifier}", :target => "_blank", :title => shixun.name %>
<%= link_to overflow_hidden_span(shixun.name,width:150), "/shixuns/#{shixun.identifier}", :target => "_blank", :title => shixun.name %>
</span>
</td>
<td>
<%= shixun.shixun_main_name.nil? ? "--" : shixun.shixun_main_name %>
<%= display_text shixun.shixun_main_name %>
</td>
<td>
<% status_options = [['超级管理员', '0'], ["合作团队", "1"]] %>
@ -50,9 +50,9 @@
<%= check_box_tag :code_hidden,!shixun.code_hidden,shixun.code_hidden,remote:true,data:{id:shixun.id,toggle:"tooltip",placement:"top"},onchange:"update_change(this)" ,title:"隐藏文件目录"%>
</td>
<script>
$("#tags-chosen-<%= shixun.id %>").select2({
multiple: true,
maximumSelectionLength: 3,
placeholder: '请选择技术体系'});
</script>
<!--<script>-->
<!-- $("#tags-chosen-<%= shixun.id %>").select2({-->
<!-- multiple: true,-->
<!-- maximumSelectionLength: 3,-->
<!-- placeholder: '请选择技术体系'});-->
<!--</script>-->

@ -1,5 +1,5 @@
<% define_admin_breadcrumbs do %>
<% add_admin_breadcrumb('精选实训', admins_shixuns_path) %>
<% add_admin_breadcrumb('实训列表', admins_shixuns_path) %>
<% end %>
<div class="box search-form-container shixuns-list-form">

Loading…
Cancel
Save