dev_local
jasder 6 years ago
parent 3b584094c2
commit 9622698953

@ -1175,6 +1175,7 @@ end
@menu_type = 6
@sub_type = 3
@partners = Partner.includes(:school).order("created_at desc")
@partners = @partners.where("concat(schools.name) like ? ", "%#{params[:search]}%") unless params[:search].blank?
@current_partner = nil
if params[:partner]

@ -1,7 +1,7 @@
<div class="mt20">
<div class="clearfix edu-back-white padding20-30">
<input class="fl task-form-20 task-height-30" placeholder="输入合作伙伴名称进行搜索">
<a href="javascript:void(0)" class="fl task-btn task-btn-orange ml10">搜索</a>
<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">清除</a>
</div>
<div class="clearfix mt20">
@ -75,4 +75,8 @@
})
function submit_search_partner(){
$.get("/managements/partners?search="+$("#partner_search").val());
}
</script>
Loading…
Cancel
Save