闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
646 B

  1. - content_for :page_title do
  2. = t('admin.domain_blocks.show.title', domain: @domain_block.domain)
  3. = simple_form_for @domain_block, url: admin_domain_block_path(@domain_block), method: :delete do |f|
  4. - if (@domain_block.noop?)
  5. = f.input :retroactive,
  6. as: :hidden,
  7. input_html: { :value => "0" }
  8. - else
  9. = f.input :retroactive,
  10. as: :boolean,
  11. wrapper: :with_label,
  12. label: t(".retroactive.#{@domain_block.severity}"),
  13. hint: t(:affected_accounts,
  14. scope: [:admin, :domain_blocks, :show],
  15. count: @domain_block.accounts_count)
  16. .actions
  17. = f.button :button, t('.undo'), type: :submit