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