You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1002 B
28 lines
1002 B
<table class="table table-hover text-center department-list-table">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th width="14%" class="text-left">部门名称</th>
|
|
<th width="14%" class="text-left">单位名称</th>
|
|
<th width="6%">用户数</th>
|
|
<th width="10%">已职业认证</th>
|
|
<th width="20%">部门管理员</th>
|
|
<th width="8%">统计链接</th>
|
|
<th width="8%">云主机数</th>
|
|
<th width="10%"><%= sort_tag('创建时间', name: 'created_at', path: admins_departments_path) %></th>
|
|
<th width="14%">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% if departments.present? %>
|
|
<% departments.each do |department| %>
|
|
<tr class="department-item-<%= department.id %>">
|
|
<%= render 'admins/departments/shared/department_item', department: department %>
|
|
</tr>
|
|
<% end %>
|
|
<% else %>
|
|
<%= render 'admins/shared/no_data_for_table' %>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= render partial: 'admins/shared/paginate', locals: { objects: departments } %> |