You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
<div class="mt20">
|
|
<div class="clearfix edu-back-white padding20-30">
|
|
<input class="fl task-form-20 task-height-30" placeholder="输入合作伙伴名称进行搜索" id="partner_search">
|
|
<a href="javascript:void(0)" class="fl task-btn task-btn-orange ml10" onclick="submit_search_partner()">搜索</a>
|
|
<a href="javascript:void(0)" class="fl task-btn ml10" onclick="$('#partner_search').val('')">清除</a>
|
|
</div>
|
|
<div class="clearfix mt20">
|
|
<div class="with25 fl">
|
|
<%= link_to "+添加", all_partners_managements_path,remote:true,class:"color-blue addOperation" %>
|
|
<ul class="partnerList" id="partner_list">
|
|
<%= render :partial => "partner_list" %>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="partner_main_div">
|
|
<%= render :partial => "partner_main_div" %>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function(){
|
|
$(".partnerList li").on("click","a",function(){
|
|
$(".partnerList li a").removeClass("active");
|
|
$(this).addClass("active");
|
|
})
|
|
})
|
|
|
|
function submit_search_partner(){
|
|
$.get("/managements/partners?search="+$("#partner_search").val());
|
|
}
|
|
|
|
|
|
function delPartners(url){
|
|
delete_confirm_box_2(url,"确定删除合作伙伴?");
|
|
}
|
|
</script> |