Reword Copy within "Delete" Modal in Admin Member Detail View (#16755)

* Replaces for with of in _delete.html.erb modal copy

* Removes strong tags around text for conistency in modal

* Adjusts copy within _delete.html.erb
This commit is contained in:
Julianna Tetreault 2022-03-03 08:23:05 -07:00 committed by GitHub
parent 33488ba88e
commit 7b944c8327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,13 @@
<% if current_user.super_admin? %>
<%= 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| %>
<p>This action is irreversible.</p>
<p>Once deleted, all data for <%= @user.name %> will be removed from our database.</p>
<p>Once deleted, all data relating to <%= @user.name %> will be removed from our database.</p>
<p>Be careful with this action.</p>
<div>
<button class="c-btn c-btn--primary c-btn--destructive">Delete now</button>
</div>
<% end %>
<% else %>
<div class="crayons-notice crayons-notice--danger">Only <strong>Super Admins</strong> are allowed to delete users.</div>
<div class="crayons-notice crayons-notice--danger">Only Super Admins are allowed to delete users.</div>
<% end %>
</div>