<% if customers.present? %> <% customers.each_with_index do |customer, index| %> <% end %> <% else %> <%= render 'admins/shared/no_data_for_table' %> <% end %>
序号 客户名称 <%= sort_tag('添加时间', name: 'created_at', path: admins_partner_customers_path(current_partner)) %> 操作
<%= list_index_no((params[:page] || 1).to_i, index) %> <%= 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 } %>