mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Small fixes for profile edits
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3bd87a2785
commit
0e68b8e9f2
|
@ -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 -->
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue