diff --git a/app/views/manage/users/edit.html.haml b/app/views/manage/users/edit.html.haml index 2fdb8fa74..c7b6076e0 100644 --- a/app/views/manage/users/edit.html.haml +++ b/app/views/manage/users/edit.html.haml @@ -1,4 +1,5 @@ -= render "layouts/manage/page_title", title: t(:title, scope: "pages.manage.users.edit", user_name: @user.full_name), subtitle: @user.full_name do += render "layouts/manage/page_title", title: @user.full_name, subtitle: t(:subtitle, scope: 'pages.manage.users.edit') do + .btn-group = link_to t(:cancel, scope: "pages.manage.users.edit"), manage_user_path(@user), class: 'btn btn-sm btn-outline-secondary' = link_to t(:delete, scope: "pages.manage.users.edit"), manage_user_path(@user), method: :delete, data: { confirm: "Are you sure? #{@user.email} will be permanently deleted. This action is irreversible." }, class: 'btn btn-sm btn-outline-secondary' diff --git a/app/views/manage/users/show.html.haml b/app/views/manage/users/show.html.haml index 9e56f0e39..1ee34f32d 100644 --- a/app/views/manage/users/show.html.haml +++ b/app/views/manage/users/show.html.haml @@ -1,4 +1,5 @@ -= render "layouts/manage/page_title", title: t(:title, scope: "pages.manage.users.show", user_name: @user.full_name) do += render "layouts/manage/page_title", title: @user.full_name, subtitle: t(:subtitle, scope: 'pages.manage.users.show') do + .btn-group = link_to t(:edit, scope: "pages.manage.users.show"), edit_manage_user_path(@user), class: 'btn btn-sm btn-outline-secondary' = link_to t(:delete, scope: "pages.manage.users.show"), manage_user_path(@user), method: :delete, data: { confirm: "Are you sure? #{@user.email} along with their questionnaire will be permanently deleted. This action is irreversible." }, class: 'btn btn-sm btn-outline-secondary' diff --git a/config/locales/en.yml b/config/locales/en.yml index a36132e5c..3a0124856 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -156,7 +156,7 @@ en: previous_signed_in_ip: Previous signed-in IP sign_in_count: Sign-in count show: - title: "%{user_name}" + subtitle: "User" edit: Edit reset_password: Reset Password delete: Delete @@ -180,8 +180,7 @@ en: sign_in_count: Sign-in count change_history: Change History edit: - title: Edit User - subtitle: "%{user_name}" + subtitle: Edit User cancel: Cancel delete: Delete form: