<% define_admin_breadcrumbs do %> <% add_admin_breadcrumb('部门列表') %> <% end %>
<%= form_tag(admins_departments_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
<%= hidden_field_tag(:with_member, false,id:'') %> <%= check_box_tag(:with_member, true, params[:with_member].to_s == 'true', class: 'form-check-input') %>
<%= hidden_field_tag(:with_identifier, false,id:'') %> <%= check_box_tag(:with_identifier, true, params[:with_identifier].to_s == 'true', class: 'form-check-input') %>
<%= text_field_tag(:keyword, params[:keyword], class: 'form-control col-sm-2 ml-3', placeholder: '部门/单位名称检索') %> <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %> <% end %> <%= javascript_void_link '新建部门', class: 'btn btn-primary', data: { toggle: 'modal', target: '.admin-create-department-modal' } %>
<%= render partial: 'admins/departments/shared/list', locals: { departments: @departments, users_count: @users_count, professional_auth_count: @professional_auth_count } %>
<%= render 'admins/departments/shared/create_department_modal' %> <%= render 'admins/departments/shared/add_department_member_modal' %> <%= render 'admins/departments/shared/merge_department_modal' %>