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.
educoder/app/views/partners/customers.html.erb

25 lines
1.1 KiB

<div class="container mt-3 px-0 bg-white">
<div class="custom-nav">
<div class="custom-nav-item">
<%= link_to '客户列表', customers_partner_path(current_partner), class: 'custom-nav-link active' %>
</div>
<% if manager_permission? %>
<div class="custom-nav-item">
<%= link_to '权限管理', partner_manager_groups_partner_path(current_partner), class: 'custom-nav-link' %>
</div>
<% end %>
</div>
<div class="customer-list-container">
<div class="box customer-list-form">
<%= form_tag(customers_partner_path(current_partner), method: :get, class: 'form-inline search-form', remote: true) do %>
<%= text_field_tag(:keyword, params[:keyword], class: 'form-control col-md-4 ml-3', placeholder: '单位名称检索') %>
<%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %>
<% end %>
</div>
<div class="customer-list-body" data-id="<%= current_partner.id %>">
<%= render partial: 'partners/shared/customer_list', locals: { customers: @customers } %>
</div>
</div>
</div>