X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ae95d0a239cf5f7406f6af7e2b25fd5be94a8ad0..refs/pull/263/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..4db00e31f 100644 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -3,57 +3,87 @@ @section('content') -
-
-
- -
-
+ @include('settings/navbar', ['selected' => 'users']) -
-
+ +
+
id}") }}" method="post">
-
-

Edit User

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

{{ $user->id === $currentUser->id ? trans('settings.users_edit_profile') : trans('settings.users_edit') }}

-
-

 

-
-

- {{ $user->name }} -

-

You can change your profile picture at Gravatar.

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

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

-
-
-

Permissions

-

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

-
    - @foreach($user->role->permissions as $permission) -
  • - {{ $permission->display_name }} -
  • - @endforeach -
+ @include('components.image-picker', [ + 'resizeHeight' => '512', + 'resizeWidth' => '512', + 'showRemove' => false, + 'defaultImage' => baseUrl('/user_avatar.png'), + 'currentImage' => $user->getAvatar(80), + 'currentId' => $user->image_id, + 'name' => 'image_id', + 'imageClass' => 'avatar large' + ])
-
-
+ + +
+ @if($currentUser->id === $user->id && count($activeSocialDrivers) > 0) +

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

+

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

+
+ @if(isset($activeSocialDrivers['google'])) +
+
+
+ @if($user->hasSocialAccount('google')) + {{ trans('settings.users_social_disconnect') }} + @else + {{ trans('settings.users_social_connect') }} + @endif +
+
+ @endif + @if(isset($activeSocialDrivers['github'])) +
+
+
+ @if($user->hasSocialAccount('github')) + {{ trans('settings.users_social_disconnect') }} + @else + {{ trans('settings.users_social_connect') }} + @endif +
+
+ @endif +
+ @endif + + +
+


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