Added option to restore from default demo

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-20 05:55:06 +01:00
parent c6c006f143
commit be17ef4047
2 changed files with 14 additions and 0 deletions

View file

@ -376,5 +376,6 @@ return [
'profile_edit' => 'Edit Profile',
'profile_edit_help' => 'Allow users to edit their own profiles.',
'default_avatar' => 'Upload default avatar',
'restore_default_avatar' => 'Restore <a href=":default_avatar" data-toggle="lightbox" data-type="image">original default avatar</a>',
];

View file

@ -119,6 +119,19 @@
"helpBlock" => trans('general.image_filetypes_help', ['size' => Helper::file_upload_max_size_readable()]),
])
@if ($setting->default_avatar == '')
<!-- Restore Default Avatar -->
<div class="form-group">
<div class="col-md-9 col-md-offset-3">
<label class="form-control">
{{ Form::checkbox('restore_default_avatar', '1', old('restore_default_avatar', $setting->restore_default_avatar)) }}
<span>{!! trans('admin/settings/general.restore_default_avatar', ['default_avatar'=> Storage::disk('public')->url('avatars/default.png')]) !!}</span>
</label>
</div>
</div>
@endif
<!-- Load gravatar -->
<div class="form-group {{ $errors->has('load_remote') ? 'error' : '' }}">
<div class="col-md-3">