From f978b06dd188fef4c2ece5e787818579b663ddf8 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 6 Dec 2016 18:22:59 +0100 Subject: Add suspend account functionality to admin UI --- app/views/admin/accounts/show.html.haml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/views/admin/accounts/show.html.haml') diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml index 47f1e2308..de63dd7f9 100644 --- a/app/views/admin/accounts/show.html.haml +++ b/app/views/admin/accounts/show.html.haml @@ -33,3 +33,5 @@ .actions = f.button :button, t('generic.save_changes'), type: :submit + += link_to 'Perform full suspension', suspend_admin_account_path(@account.id), method: :post, data: { confirm: 'Are you sure?' }, class: 'button' -- cgit