|
|
@ -24,16 +24,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
%hr.spacer/
|
|
|
|
%hr.spacer/
|
|
|
|
|
|
|
|
|
|
|
|
.table-wrapper
|
|
|
|
= form_for(@form, url: batch_admin_accounts_path) do |f|
|
|
|
|
%table.table
|
|
|
|
.batch-table
|
|
|
|
%thead
|
|
|
|
.batch-table__toolbar
|
|
|
|
%tr
|
|
|
|
%label.batch-table__toolbar__select.batch-checkbox-all
|
|
|
|
%th= t('admin.accounts.username')
|
|
|
|
= check_box_tag :batch_checkbox_all, nil, false
|
|
|
|
%th= t('admin.accounts.role')
|
|
|
|
.batch-table__toolbar__actions
|
|
|
|
%th= t('admin.accounts.most_recent_ip')
|
|
|
|
= f.button safe_join([fa_icon('lock'), t('admin.accounts.perform_full_suspension')]), name: :suspend, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
|
|
|
|
%th= t('admin.accounts.most_recent_activity')
|
|
|
|
.batch-table__body
|
|
|
|
%th
|
|
|
|
- if @accounts.empty?
|
|
|
|
%tbody
|
|
|
|
= nothing_here 'nothing-here--under-tabs'
|
|
|
|
= render partial: 'admin/accounts/account', collection: @accounts
|
|
|
|
- else
|
|
|
|
|
|
|
|
= render partial: 'admin/accounts/account', collection: @accounts, locals: { f: f }
|
|
|
|
|
|
|
|
|
|
|
|
= paginate @accounts
|
|
|
|
= paginate @accounts
|
|
|
|