X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/fff5bbcee458992443e3732fbcbbbe34f765fcc3..refs/pull/1973/head:/resources/views/users/edit.blade.php diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php index d06ec09bc..f78c25ceb 100644 --- a/resources/views/users/edit.blade.php +++ b/resources/views/users/edit.blade.php @@ -1,79 +1,96 @@ -@extends('base') - - -@section('content') - - @include('settings/navbar', ['selected' => 'users']) - - +@extends('simple-layout') +@section('body')
-
id}") }}" method="post"> -
-
-

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

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

This image should be approx 256px square.

- -
-
+
+ @include('settings.navbar', ['selected' => 'users'])
- -
+
+

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

+
id}") }}" method="post" enctype="multipart/form-data"> + {!! csrf_field() !!} + - @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'])) -
-
+
+ @include('users.form', ['model' => $user, 'authMethod' => $authMethod]) + +
+
+ +

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

+
- @if($user->hasSocialAccount('google')) - Disconnect Account - @else - Attach Account - @endif + @include('components.image-picker', [ + 'resizeHeight' => '512', + 'resizeWidth' => '512', + 'showRemove' => false, + 'defaultImage' => url('/http/source.bookstackapp.com/user_avatar.png'), + 'currentImage' => $user->getAvatar(80), + 'currentId' => $user->image_id, + 'name' => 'profile_image', + 'imageClass' => 'avatar large' + ])
- @endif - @if(isset($activeSocialDrivers['github'])) -
-
+ +
+
+ +

+ {{ trans('settings.users_preferred_language_desc') }} +

+
- @if($user->hasSocialAccount('github')) - Disconnect Account - @else - Attach Account - @endif +
- @endif -
- @endif +
+ +
+ {{ trans('common.cancel') }} + @if($authMethod !== 'system') + id}/delete") }}" class="button outline">{{ trans('settings.users_delete') }} + @endif + +
+ +
+ @if($currentUser->id === $user->id && count($activeSocialDrivers) > 0) +
+

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

+

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

+
+
+ @foreach($activeSocialDrivers as $driver => $enabled) +
+
@icon('auth/'. $driver, ['style' => 'width: 56px;height: 56px;'])
+
+ @if($user->hasSocialAccount($driver)) + {{ trans('settings.users_social_disconnect') }} + @else + {{ trans('settings.users_social_connect') }} + @endif +
+
+ @endforeach +
+
+
+ @endif + + @if(($currentUser->id === $user->id && userCan('access-api')) || userCan('users-manage')) + @include('users.api-tokens.list', ['user' => $user]) + @endif
-


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