X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/1b736ac0457eb5865bfc9ca33ce0681a0e8ab7de..refs/pull/432/head:/resources/views/users/edit.blade.php diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index 2c3c6079f..ff3475194 100644 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -3,76 +3,78 @@ @section('content') -
-
+ @include('settings/navbar', ['selected' => 'users']) + +
+
id}") }}" method="post">
-
-
- +
+

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

+
+
-
-
- - - -
- -
-
-

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

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

 

-
-

- {{ $user->name }} -

-

You can change your profile picture at Gravatar.

+ @include('users.forms.' . $authMethod, ['model' => $user]) + +
+
+
+ +

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

+ + @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' + ]) +
+
+ + +
-
+
+ {{ trans('common.cancel') }} + +
+
@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. -

+

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

+

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

- @if(isset($activeSocialDrivers['google'])) -
-
+ @foreach($activeSocialDrivers as $driver => $enabled) +
+
@icon($driver, ['width' => 56])
- @if($user->hasSocialAccount('google')) - Disconnect Account + @if($user->hasSocialAccount($driver)) + {{ trans('settings.users_social_disconnect') }} @else - Attach Account + {{ trans('settings.users_social_connect') }} @endif
- @endif - @if(isset($activeSocialDrivers['github'])) -
-
-
- @if($user->hasSocialAccount('github')) - Disconnect Account - @else - Attach Account - @endif -
-
- @endif + @endforeach
@endif @@ -80,5 +82,5 @@


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