mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Migrate Form::open and Form::close in upload file modal
This commit is contained in:
parent
93a67847ba
commit
716161e626
|
@ -6,11 +6,13 @@
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title" id="uploadFileModalLabel">{{ trans('general.file_upload') }}</h4>
|
<h4 class="modal-title" id="uploadFileModalLabel">{{ trans('general.file_upload') }}</h4>
|
||||||
</div>
|
</div>
|
||||||
{{ Form::open([
|
<form
|
||||||
'method' => 'POST',
|
method="POST"
|
||||||
'route' => ['upload/'.$item_type, $item_id],
|
action="{{ route('upload/' . $item_type, $item_id) }}"
|
||||||
'files' => true,
|
accept-charset="UTF-8"
|
||||||
'class' => 'form-horizontal' ]) }}
|
class="form-horizontal"
|
||||||
|
enctype="multipart/form-data"
|
||||||
|
>
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
|
@ -46,7 +48,7 @@
|
||||||
<a href="#" class="pull-left" data-dismiss="modal">{{ trans('button.cancel') }}</a>
|
<a href="#" class="pull-left" data-dismiss="modal">{{ trans('button.cancel') }}</a>
|
||||||
<button type="submit" class="btn btn-primary">{{ trans('button.upload') }}</button>
|
<button type="submit" class="btn btn-primary">{{ trans('button.upload') }}</button>
|
||||||
</div>
|
</div>
|
||||||
{{ Form::close() }}
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue