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.
pgfqe6ch8/app/views/managements/partners.html.erb

37 lines
1.2 KiB

6 years ago
<div class="mt20">
<div class="clearfix edu-back-white padding20-30">
6 years ago
<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>
6 years ago
</div>
<div class="clearfix mt20">
<div class="with25 fl">
<%= link_to "+添加", all_partners_managements_path,remote:true,class:"color-blue addOperation" %>
6 years ago
<ul class="partnerList" id="partner_list">
<%= render :partial => "partner_list" %>
6 years ago
</ul>
</div>
6 years ago
<div id="partner_main_div">
<%= render :partial => "partner_main_div" %>
</div>
6 years ago
</div>
</div>
<script>
$(function(){
$(".partnerList li").on("click","a",function(){
$(".partnerList li a").removeClass("active");
$(this).addClass("active");
})
})
6 years ago
function submit_search_partner(){
$.get("/managements/partners?search="+$("#partner_search").val());
}
function delPartners(url){
delete_confirm_box_2(url,"确定删除合作伙伴?");
}
6 years ago
</script>