diff --git a/app/views/admin/users/show/overview/_organizations.html.erb b/app/views/admin/users/show/overview/_organizations.html.erb index cb442b39c..ab72395ac 100644 --- a/app/views/admin/users/show/overview/_organizations.html.erb +++ b/app/views/admin/users/show/overview/_organizations.html.erb @@ -28,12 +28,12 @@
This is extremely destructive. Banishing will delete all the user's existing content and change their username to @spam_###.
-Do not do this lightly.
- <%= form_for(@user, url: banish_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible. Banishing will delete all articles and turn their username into @spam_###')", id: nil }) do %> +This action is irreversible.
+Once banished, we will delete all content created by <%= @user.name %> and change their username to @spam_###.
+Be careful with this action.
+ <%= form_for(@user, url: banish_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This action is irreversible. Banishing will delete all content by #{@user.name} and change their username to @spam_###.')", id: nil }) do %> <% end %> <% elsif current_user.super_admin? || current_user.support_admin? %> -This is not a new user. You are only allowed to take this action because you are a Super Admin or a Support Admin.
-This is extremely destructive. Banishing will delete all the user's existing content and change their username to @spam_###.
-Do not do this lightly.
- <%= form_for(@user, url: banish_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible. Banishing will delete all articles and turn their username into @spam_###')", id: nil }) do %> - +This action is irreversible.
+Once banished, we will delete all content created by <%= @user.name %> and change their username to @spam_###.
+Be careful with this action.
+ <%= form_for(@user, url: banish_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This action is irreversible. Banishing will delete all content by #{@user.name} and change their username to @spam_###.')", id: nil }) do %> + <% end %> <% else %> -This will completely destroy the user and all of their activity from our database. This action is irreversible.
-Do not do this lightly.
+ <%= form_for(@user, url: full_delete_admin_user_path(@user), html: { class: "flex flex-col gap-4", method: :post, onsubmit: "return confirm('Are you sure? This action is irreversible.')", id: nil }) do |f| %> +This action is irreversible.
+Once deleted, all data for <%= @user.name %> will be removed from our database.
+Be careful with this action.
- You can export a user's data here. Currently we only support exporting a user's posts and comments. + Choose betweem sending the exported data to either your Admin contact email, <%= ForemInstance.email %>, + or to <%= @user.name %>'s user email directly.
- You have the option of exporting to your Admin account to send to the user, or exporting to the user directly. -
-- Exporting the data to your Admin account will send it to your contact - Admin email (<%= ForemInstance.email %>), - and exporting to the user will send it to their email (<%= @user.email %>). + Exported data includes a user's posts and comments.
To merge a duplicate account, first make sure you are currently on the page of the user you want to keep. Below, add the user ID of the account to merge information from, and delete.
+This action is irreversible.
+Make sure you are currently on the page of the user you want to keep. Once merged, the account entered below will be merged and deleted.
- User ID for the user that will be deleted and merged. -
<%= f.text_field :merge_user_id, placeholder: "1234", class: "crayons-textfield", type: "number", inputmode: "numeric", aria: { describedby: "merge-user-description" } %>