diff --git a/app/views/admin/users/_form.html.erb b/app/views/admin/users/_form.html.erb index f7316b506..d211bc9b1 100644 --- a/app/views/admin/users/_form.html.erb +++ b/app/views/admin/users/_form.html.erb @@ -395,20 +395,25 @@
<%= f.submit 'Save', class: 'btn btn-primary' %> - - <%= button_to('Delete', - admin_user_path, - class: 'btn btn-danger pull-right', - data: { - confirm: 'Are you sure you want to completely destroy this user account? This is irreversible!', - disable_with: 'Destroying...' - }, - method: :delete) - %>
<% end %> +
+
+ <%= link_to('Destroy User Account', + admin_user_path(@user), + class: 'btn btn-danger pull-right', + style: 'margin-top: -50px; padding-top: -50px;', + data: { + confirm: 'Are you sure you want to completely destroy this user account? This is irreversible!', + disable_with: 'Destroying...' + }, + method: :delete) + %> +
+
+ <% if @user.external_ids.any? %>

External IDs