import.html.haml 1.0 KB

123456789101112131415161718192021
  1. - content_for :page_title do
  2. = t('admin.export_domain_blocks.import.title')
  3. %p= t('admin.export_domain_blocks.import.description_html')
  4. - if defined?(@global_private_comment) && @global_private_comment.present?
  5. %p= t('admin.export_domain_blocks.import.private_comment_description_html', comment: @global_private_comment)
  6. = form_for(@form, url: batch_admin_domain_blocks_path) do |f|
  7. .batch-table
  8. .batch-table__toolbar
  9. %label.batch-table__toolbar__select.batch-checkbox-all
  10. = check_box_tag :batch_checkbox_all, nil, false
  11. .batch-table__toolbar__actions
  12. = f.button safe_join([fa_icon('copy'), t('admin.domain_blocks.import')]), name: :save, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
  13. .batch-table__body
  14. - if @domain_blocks.empty?
  15. = nothing_here 'nothing-here--under-tabs'
  16. - else
  17. = f.simple_fields_for :domain_blocks, @domain_blocks do |ff|
  18. = render 'domain_block', f: ff, existing_relationships: @warning_domains.include?(ff.object.domain)