X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0775cd09a152c6e05c100139812f1fc35cb1ac6a..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 b753dfc45..ff3475194 100644 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -5,8 +5,6 @@ @include('settings/navbar', ['selected' => 'users']) - -
id}") }}" method="post">
@@ -21,20 +19,42 @@
-
- {!! csrf_field() !!} - - @include('users.forms.' . $authMethod, ['model' => $user]) +
+ {!! csrf_field() !!} + + @include('users.forms.' . $authMethod, ['model' => $user]) -
-
-
- -

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

- +
+
+
+ +

{{ 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') }} + +

@@ -43,30 +63,18 @@

{{ 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'])) -
-
+ @foreach($activeSocialDrivers as $driver => $enabled) +
+
@icon($driver, ['width' => 56])
- @if($user->hasSocialAccount('github')) - {{ trans('settings.users_social_disconnect') }} + @if($user->hasSocialAccount($driver)) + {{ trans('settings.users_social_disconnect') }} @else - {{ trans('settings.users_social_connect') }} + {{ trans('settings.users_social_connect') }} @endif
- @endif + @endforeach
@endif @@ -74,5 +82,5 @@


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