<% can_manager = manager_permission? %> <% if can_manager %> <% else %> <% end %> <% if customers.present? %> <%- manager_group_options = current_partner.partner_manager_groups.without_admin.map{ |g| [g.name, g.id] }.unshift(['选择权限组', '']) -%> <% customers.each do |customer| %> <% if can_manager %> <% else %> <% end %> <% end %> <% else %> <%= render 'admins/shared/no_data_for_table' %> <% end %>
单位名称 权限控制单位名称教师 学生 课堂 发布实训 实训报告 最新课堂动态时间 使用详情
<%= customer.school.name %> <%= select_tag(:manager_group, options_for_select(manager_group_options, customer.partner_manager_group_id), data: { id: customer.id, last: customer.partner_manager_group_id }, id: nil, class: 'form-control manager-group-select') %> <%= customer.school.name %><%= display_text customer.display_extra_data(:teacher_count) %> <%= display_text customer.display_extra_data(:student_count) %> <%= display_text customer.display_extra_data(:course_count) %> <%= display_text customer.display_extra_data(:shixun_count) %> <%= display_text customer.display_extra_data(:shixun_report_count) %> <%= display_text customer.display_extra_data(:course_time)&.strftime('%Y-%m-%d %H:%M') %> <%= link_to('查看', statistics_college_path(customer.school), target: '_blank') %>
<%= render partial: 'admins/shared/paginate', locals: { objects: customers } %>