X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e211f313704d3a0a00d8d358bd49eb310f9531c5..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 4db00e31f..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,31 +19,42 @@
-
- {!! csrf_field() !!} - - @include('users.forms.' . $authMethod, ['model' => $user]) - -
-
-
- -

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

+
+ {!! csrf_field() !!} + + @include('users.forms.' . $authMethod, ['model' => $user]) - @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('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') }} + +

@@ -54,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