2017-10-04 22:16:10 +09:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.email_domain_blocks.title')
|
|
|
|
|
2020-01-11 10:14:45 +09:00
|
|
|
- content_for :heading_actions do
|
|
|
|
= link_to t('admin.email_domain_blocks.add_new'), new_admin_email_domain_block_path, class: 'button'
|
|
|
|
|
2022-02-25 01:28:23 +09:00
|
|
|
= form_for(@form, url: batch_admin_email_domain_blocks_path) do |f|
|
|
|
|
= 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
|
2024-04-24 01:43:49 +09:00
|
|
|
= f.button safe_join([material_symbol('close'), t('admin.email_domain_blocks.delete')]),
|
2024-03-15 20:19:00 +09:00
|
|
|
class: 'table-action-link',
|
|
|
|
data: { confirm: t('admin.reports.are_you_sure') },
|
|
|
|
name: :delete,
|
|
|
|
type: :submit
|
2022-02-25 01:28:23 +09:00
|
|
|
.batch-table__body
|
|
|
|
- if @email_domain_blocks.empty?
|
|
|
|
= nothing_here 'nothing-here--under-tabs'
|
|
|
|
- else
|
|
|
|
= render partial: 'email_domain_block', collection: @email_domain_blocks.flat_map { |x| [x, x.children.to_a].flatten }, locals: { f: f }
|
2017-10-04 22:16:10 +09:00
|
|
|
|
|
|
|
= paginate @email_domain_blocks
|