<% if customers.present? %> <% customers.each do |customer| %> <% end %> <% else %> <%= render 'admins/shared/no_data_for_table' %> <% end %>
客户名称 <%= sort_tag('添加时间', name: 'created_at', path: admins_partner_customers_path(current_partner)) %> 操作
<%= customer.school&.name %> <%= customer.created_at&.strftime('%Y-%m-%d %H:%M') %> <%= delete_link '删除', admins_partner_customer_path(current_partner, customer, element: ".customer-item-#{customer.id}"), class: 'delete-customer-action' %>
<%= render partial: 'admins/shared/paginate', locals: { objects: customers } %>