diff --git a/resources/views/users/delete.blade.php b/resources/views/users/delete.blade.php index b18c182eb..b2f08b641 100644 --- a/resources/views/users/delete.blade.php +++ b/resources/views/users/delete.blade.php @@ -5,40 +5,40 @@ @include('settings.parts.navbar', ['selected' => 'users']) -
-

{{ trans('settings.users_delete') }}

+
id}") }}" method="POST"> + {!! csrf_field() !!} -

{{ trans('settings.users_delete_warning', ['userName' => $user->name]) }}

+
+

{{ trans('settings.users_delete') }}

+ +

{{ trans('settings.users_delete_warning', ['userName' => $user->name]) }}

+ + @if(userCan('users-manage')) +
+ +
+
+ +

{{ trans('settings.users_migrate_ownership_desc') }}

+
+
+ @include('form.user-select', ['name' => 'new_owner_id', 'user' => null]) +
+
+ @endif - @if(userCan('users-manage'))
-
-
- -

{{ trans('settings.users_migrate_ownership_desc') }}

-
-
- @include('form.user-select', ['name' => 'new_owner_id', 'user' => null]) -
-
- @endif - -
- -
-

{{ trans('settings.users_delete_confirm') }}

-
- id}") }}" method="POST" class="text-right"> - {!! csrf_field() !!} - +
+

{{ trans('settings.users_delete_confirm') }}

+
-
-
+
+
@stop diff --git a/tests/User/UserManagementTest.php b/tests/User/UserManagementTest.php index af17db52b..d5cd7ac79 100644 --- a/tests/User/UserManagementTest.php +++ b/tests/User/UserManagementTest.php @@ -145,6 +145,7 @@ class UserManagementTest extends TestCase $resp = $this->asEditor()->get("settings/users/{$editor->id}/delete"); $resp->assertSee('Migrate Ownership'); + $this->withHtml($resp)->assertElementExists('form input[name="new_owner_id"]'); $resp->assertSee('new_owner_id'); }