mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Fixed #4779 - show selected filename on filepicker
This commit is contained in:
parent
afc7116260
commit
0abab2107c
|
@ -3,9 +3,12 @@
|
|||
<div class="col-md-5">
|
||||
<label class="btn btn-default">
|
||||
{{ trans('button.select_file') }}
|
||||
<input type="file" name="image" accept="image/gif,image/jpeg,image/png,image/svg" hidden>
|
||||
<input type="file" name="image" accept="image/gif,image/jpeg,image/png,image/svg"
|
||||
onchange="$('#upload-file-info').html(this.files[0].name)" style="display:none">
|
||||
</label>
|
||||
<span class='label label-default' id="upload-file-info"></span>
|
||||
<p class="help-block">{{ trans('general.image_filetypes_help') }}</p>
|
||||
{!! $errors->first('image', '<span class="alert-msg">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue