mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Show existing images on user edit page
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
32c768792a
commit
fc86eefeac
|
@ -1,6 +1,6 @@
|
||||||
<!-- Image stuff - kept in /resources/views/partials/forms/edit/image-upload.blade.php -->
|
<!-- Image stuff - kept in /resources/views/partials/forms/edit/image-upload.blade.php -->
|
||||||
<!-- Image Delete -->
|
<!-- Image Delete -->
|
||||||
@if (isset($item) && ($item->image) && ($item->image!=''))
|
@if (isset($item) && ($item->{($fieldname ?? 'image')}))
|
||||||
<div class="form-group{{ $errors->has('image_delete') ? ' has-error' : '' }}">
|
<div class="form-group{{ $errors->has('image_delete') ? ' has-error' : '' }}">
|
||||||
<div class="col-md-9 col-md-offset-3">
|
<div class="col-md-9 col-md-offset-3">
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-md-9 col-md-offset-3">
|
<div class="col-md-9 col-md-offset-3">
|
||||||
<img src="{{ Storage::disk('public')->url($image_path.e($item->image)) }}" class="img-responsive">
|
<img src="{{ Storage::disk('public')->url($image_path.e($item->{($fieldname ?? 'image')})) }}" class="img-responsive">
|
||||||
{!! $errors->first('image_delete', '<span class="alert-msg">:message</span>') !!}
|
{!! $errors->first('image_delete', '<span class="alert-msg">:message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue