2020-10-12 14:33:49 +00:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.ip_blocks.title')
|
|
|
|
|
|
|
|
- if can?(:create, :ip_block)
|
|
|
|
- content_for :heading_actions do
|
|
|
|
= link_to t('admin.ip_blocks.add_new'), new_admin_ip_block_path, class: 'button'
|
|
|
|
|
2024-06-14 09:54:22 +00:00
|
|
|
= form_with model: @form, url: batch_admin_ip_blocks_path do |f|
|
2020-10-12 14:33:49 +00:00
|
|
|
= hidden_field_tag :page, params[:page] || 1
|
|
|
|
|
|
|
|
.batch-table
|
|
|
|
.batch-table__toolbar
|
|
|
|
%label.batch-table__toolbar__select.batch-checkbox-all
|
|
|
|
= check_box_tag :batch_checkbox_all, nil, false
|
|
|
|
.batch-table__toolbar__actions
|
|
|
|
- if can?(:destroy, :ip_block)
|
2024-04-23 16:43:49 +00:00
|
|
|
= f.button safe_join([material_symbol('close'), t('admin.ip_blocks.delete')]),
|
2024-03-15 11:19:00 +00:00
|
|
|
class: 'table-action-link',
|
|
|
|
data: { confirm: t('admin.reports.are_you_sure') },
|
|
|
|
name: :delete,
|
|
|
|
type: :submit
|
2020-10-12 14:33:49 +00:00
|
|
|
.batch-table__body
|
|
|
|
- if @ip_blocks.empty?
|
|
|
|
= nothing_here 'nothing-here--under-tabs'
|
|
|
|
- else
|
|
|
|
= render partial: 'ip_block', collection: @ip_blocks, locals: { f: f }
|
|
|
|
|
|
|
|
= paginate @ip_blocks
|