<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>