From b9a9949570c683379f41ecea0f0be2a554d3dfa5 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 23 Oct 2020 12:09:20 -0700 Subject: [PATCH] Use the form partial for avatars --- resources/views/account/profile.blade.php | 31 ++++++++++------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php index 59c7cb64e3..37230bf0b3 100755 --- a/resources/views/account/profile.blade.php +++ b/resources/views/account/profile.blade.php @@ -94,28 +94,25 @@ + @if ($user->avatar) -
- -
- {{ Form::checkbox('avatar_delete') }} - {{ $user->present()->fullName() }} avatar image - {!! $errors->first('avatar_delete', '') !!} +
+ +
+ +
+ {{ $user->present()->fullName() }} avatar image + {!! $errors->first('avatar_delete', '') !!}
@endif -
- -
- -

{{ trans('general.image_filetypes_help') }}

- {!! $errors->first('avatar', '') !!} -
-
+ + @include ('partials.forms.edit.image-upload', ['fieldname' => 'avatar']) + +