2022-11-17 21:05:09 +11:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.export_domain_blocks.import.title')
|
|
|
|
|
|
|
|
%p= t('admin.export_domain_blocks.import.description_html')
|
|
|
|
|
|
|
|
- if defined?(@global_private_comment) && @global_private_comment.present?
|
|
|
|
%p= t('admin.export_domain_blocks.import.private_comment_description_html', comment: @global_private_comment)
|
|
|
|
|
2024-06-14 19:54:22 +10:00
|
|
|
= form_with model: @form, url: batch_admin_domain_blocks_path do |f|
|
2022-11-17 21:05:09 +11:00
|
|
|
.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 02:43:49 +10:00
|
|
|
= f.button safe_join([material_symbol('content_copy'), t('admin.domain_blocks.import')]),
|
2024-03-15 22:19:00 +11:00
|
|
|
class: 'table-action-link',
|
|
|
|
data: { confirm: t('admin.reports.are_you_sure') },
|
|
|
|
name: :save,
|
|
|
|
type: :submit
|
2022-11-17 21:05:09 +11:00
|
|
|
.batch-table__body
|
|
|
|
- if @domain_blocks.empty?
|
|
|
|
= nothing_here 'nothing-here--under-tabs'
|
|
|
|
- else
|
|
|
|
= f.simple_fields_for :domain_blocks, @domain_blocks do |ff|
|
|
|
|
= render 'domain_block', f: ff, existing_relationships: @warning_domains.include?(ff.object.domain)
|