实训提示语及编辑复制
This commit is contained in:
parent
a0d2420e44
commit
91d1b133b3
|
|
@ -106,7 +106,7 @@
|
|||
<label class="panel-form-label fl">复制 </label>
|
||||
<span class="fl mr20">
|
||||
<input type="checkbox" <%= @shixun.can_copy ? 'checked' : "" %> name="can_copy" value="1" id="can_copy" class="ml5 mr5 magic-checkbox" >
|
||||
<label style="top:6px" class="color-grey" for="can_copy">(勾选则给实训合作者提供复制实训功能,否则不提供)</label>
|
||||
<label style="top:6px" class="color-grey" for="can_copy">(勾选则平台所有成员都可以复制实训)</label>
|
||||
</span>
|
||||
</li>
|
||||
<li class="clearfix">
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
<label class="panel-form-label fl">复制 </label>
|
||||
<span class="fl mr20">
|
||||
<input type="checkbox" <%= @shixun.can_copy ? 'checked' : "" %> name="can_copy" value="<%= @shixun.can_copy ? 1 : 0 %>" id="can_copy" class="ml5 mr5 magic-checkbox" >
|
||||
<label style="top:6px" class="color-grey" for="can_copy">(勾选则给实训合作者提供复制实训功能,否则不提供)</label>
|
||||
<label style="top:6px" class="color-grey" for="can_copy">(勾选则平台所有成员都可以复制实训)</label>
|
||||
</span>
|
||||
</li>
|
||||
<li class="clearfix">
|
||||
|
|
@ -77,6 +77,10 @@
|
|||
$(this).val() == '0' ? $(this).val('1') : $(this).val("0");
|
||||
});
|
||||
|
||||
$("#can_copy").on("click", function(){
|
||||
$(this).val() == '0' ? $(this).val('1') : $(this).val("0");
|
||||
});
|
||||
|
||||
$("#new_course_list").on('input', function(e){
|
||||
throttle(search_course_list, window, e);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
<label class="panel-form-label fl">复制 </label>
|
||||
<span class="fl mr20">
|
||||
<input type="checkbox" <%= @shixun.can_copy ? 'checked' : "" %> name="can_copy" value="<%= @shixun.can_copy ? 1 : 0 %>" id="can_copy" disabled="disabled" class="ml5 mr5 magic-checkbox" >
|
||||
<label style="top:6px" class="color-grey" for="can_copy">(勾选则给实训合作者提供复制实训功能,否则不提供)</label>
|
||||
<label style="top:6px" class="color-grey" for="can_copy">(勾选则平台所有成员都可以复制实训)</label>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
<% end %>
|
||||
<a href="javascript:void(0);" class="fr shixun-task-ban-btn mr15">已关闭</a>
|
||||
<% end %>
|
||||
<% if @shixun.can_copy || User.current.manager_of_shixun?(@shixun) %>
|
||||
<% if @shixun.can_copy %>
|
||||
<%#= link_to "复制", copy_shixun_path(@shixun), :class => "fr shixun-task-btn task-btn-green mr15" %>
|
||||
<a href="javascript:void(0);" onclick="op_confirm_box_loading('<%= copy_shixun_path(@shixun) %>', '复制将在后台执行</br>平台将为你创建一个新的同名实训和内容,请问是否继续?');" class = "fr shixun-task-btn task-btn-green mr15">复制</a>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Reference in New Issue