Small fixes for profile edits

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-03 23:06:09 -07:00
parent 3bd87a2785
commit 0e68b8e9f2
2 changed files with 6 additions and 4 deletions

View file

@ -123,8 +123,7 @@
@endif
@include ('partials.forms.edit.image-upload', ['fieldname' => 'avatar'])
@include ('partials.forms.edit.image-upload', ['fieldname' => 'avatar', 'image_path' => app('users_upload_path')])
<!-- Two factor opt in -->

View file

@ -1,5 +1,6 @@
<!-- Image -->
@if (($item->image) && ($item->image!=''))
<!-- Image stuff - kept in /resources/views/partials/forms/edit/image-upload.blade.php -->
<!-- Image Delete -->
@if (isset($item) && ($item->image) && ($item->image!=''))
<div class="form-group{{ $errors->has('image_delete') ? ' has-error' : '' }}">
<div class="col-md-9 col-md-offset-3">
<label class="form-control">
@ -17,6 +18,8 @@
</div>
@endif
<!-- Image Upload and preview -->
<div class="form-group {{ $errors->has((isset($fieldname) ? $fieldname : 'image')) ? 'has-error' : '' }}">
<label class="col-md-3 control-label" for="{{ (isset($fieldname) ? $fieldname : 'image') }}">{{ trans('general.image_upload') }}</label>
<div class="col-md-9">