X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ae95d0a239cf5f7406f6af7e2b25fd5be94a8ad0..refs/pull/255/head:/resources/views/users/edit.blade.php diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index cb56ad905..6cbbdb7f7 100644 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -3,57 +3,79 @@ @section('content') -
-
-
- -
-
+ @include('settings/navbar', ['selected' => 'users']) -
-
+ +
+
id}") }}" method="post">
-
-

Edit User

- - {!! csrf_field() !!} - - @include('users/form', ['model' => $user]) - +
+

Edit {{ $user->id === $currentUser->id ? 'Profile' : 'User' }}

-
-

 

-
-

- {{ $user->name }} -

-

You can change your profile picture at Gravatar.

-
+
+

+ @if($authMethod !== 'system') + id}/delete") }}" class="neg button float right">Delete User + @endif
- -
-
-
-

Permissions

-

User Role: {{$user->role->display_name}}.

-
    - @foreach($user->role->permissions as $permission) -
  • - {{ $permission->display_name }} -
  • - @endforeach -
+
+ {!! csrf_field() !!} + + @include('users.forms.' . $authMethod, ['model' => $user]) +
+
+
+ +

This image should be approx 256px square.

+
-
-
+ + +
+ @if($currentUser->id === $user->id && count($activeSocialDrivers) > 0) +

Social Accounts

+

+ Here you can connect your other accounts for quicker and easier login.
+ Disconnecting an account here does not previously authorized access. Revoke access from your profile settings on the connected social account. +

+
+ @if(isset($activeSocialDrivers['google'])) +
+
+
+ @if($user->hasSocialAccount('google')) + Disconnect Account + @else + Attach Account + @endif +
+
+ @endif + @if(isset($activeSocialDrivers['github'])) +
+
+
+ @if($user->hasSocialAccount('github')) + Disconnect Account + @else + Attach Account + @endif +
+
+ @endif +
+ @endif + + +
+


+ @include('partials/image-manager', ['imageType' => 'user']) @stop