<div class="container mt-3 px-0">
  <div class="custom-nav bg-white">
    <div class="custom-nav-item">
      <%= link_to '客户列表', customers_partner_path(current_partner), class: 'custom-nav-link' %>
    </div>
    <div class="custom-nav-item">
      <%= link_to '权限管理', partner_manager_groups_partner_path(current_partner), class: 'custom-nav-link active' %>
    </div>
  </div>

  <div class="manager-group-list-container">
    <div class="box search-form-container customer-list-form bg-white">
      <div class="flex-1">共<span class="text-danger px-1"><%= @manager_groups.size %></span>个权限组</div>
      <%= javascript_void_link('新增权限组', class: 'btn btn-primary btn-sm add-manager-group-btn',
                               data: { toggle: 'modal', target: '.partner-save-manager-group-modal' }) %>
    </div>

    <div class="manager-group-list-body" data-id="<%= current_partner.id %>">
      <%= render partial: 'partners/shared/manager_group_item', collection: @manager_groups, as: :manager_group %>
    </div>
  </div>
</div>

<%= render partial: 'partners/shared/save_manager_group_modal' %>
<%= render partial: 'partners/shared/add_partner_manager_modal' %>