summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-06-01 09:37:38 +0200
committerGitHub <noreply@github.com>2023-06-01 09:37:38 +0200
commite9385e93e9b4601c87d1f5d6b8ddfd815f7aedcb (patch)
treed90d8e6dc6fb998426e6090ed96b6b40eef97e4a /app/views
parentb922ad7a1b4bc8d968d0df2c7f307d4fec53435d (diff)
Add a confirmation screen when suspending a domain (#25144)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/domain_blocks/confirm_suspension.html.haml25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/admin/domain_blocks/confirm_suspension.html.haml b/app/views/admin/domain_blocks/confirm_suspension.html.haml
new file mode 100644
index 00000000000..fa9272c77b0
--- /dev/null
+++ b/app/views/admin/domain_blocks/confirm_suspension.html.haml
@@ -0,0 +1,25 @@
+- content_for :header_tags do
+ = javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
+
+- content_for :page_title do
+ = t('.title', domain: Addressable::IDNA.to_unicode(@domain_block.domain))
+
+= simple_form_for @domain_block, url: admin_domain_blocks_path(@domain_block) do |f|
+
+ %p.hint= t('.preamble_html', domain: Addressable::IDNA.to_unicode(@domain_block.domain))
+ %ul.hint
+ %li= t('.stop_communication')
+ %li= t('.remove_all_data')
+ %li= t('.undo_relationships')
+ %li.negative-hint= t('.permanent_action')
+
+ - %i(domain severity reject_media reject_reports obfuscate private_comment public_comment).each do |key|
+ = f.hidden_field key
+
+ %hr.spacer
+
+ = react_admin_component :impact_report, domain: @domain_block.domain
+
+ .actions
+ = link_to t('.cancel'), admin_instances_path, class: 'button button-tertiary'
+ = f.button :submit, t('.confirm'), class: 'button negative', name: :confirm