mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Added confirm modal
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
2eeb7ddf58
commit
b2940f9915
31
resources/views/modals/confirm-action.blade.php
Normal file
31
resources/views/modals/confirm-action.blade.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!-- Modal -->
|
||||
<div class="modal fade" id="confirmAction" tabindex="-1" role="dialog" aria-labelledby="confirmActionLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="confirmActionLabel">{{ trans('general.file_upload') }}</h4>
|
||||
</div>
|
||||
{{ Form::open([
|
||||
'method' => 'POST',
|
||||
'route' => ['upload/'.$item_type, $item_id],
|
||||
'files' => true,
|
||||
'class' => 'form-horizontal' ]) }}
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||
<div class="modal-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
Blah
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- /.modal-body-->
|
||||
<div class="modal-footer">
|
||||
<a href="#" class="pull-left" data-dismiss="modal">{{ trans('button.cancel') }}</a>
|
||||
<button type="submit" class="btn btn-primary">{{ trans('button.upload') }}</button>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -4,7 +4,7 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h2 class="modal-title" id="uploadFileModalLabel">{{ trans('general.file_upload') }}</h4>
|
||||
<h4 class="modal-title" id="uploadFileModalLabel">{{ trans('general.file_upload') }}</h4>
|
||||
</div>
|
||||
{{ Form::open([
|
||||
'method' => 'POST',
|
||||
|
|
|
@ -25,10 +25,21 @@ Route::group(['prefix' => 'licenses', 'middleware' => ['auth']], function () {
|
|||
[Licenses\LicenseCheckinController::class, 'store']
|
||||
)->name('licenses.checkin.save');
|
||||
|
||||
Route::post(
|
||||
'{licenseId}/bulkcheckin',
|
||||
[Licenses\LicenseCheckinController::class, 'bulkCheckin']
|
||||
)->name('licenses.bulkcheckin');
|
||||
|
||||
Route::post(
|
||||
'{licenseId}/bulkcheckout',
|
||||
[Licenses\LicenseCheckoutController::class, 'bulkCheckout']
|
||||
)->name('licenses.bulkcheckout');
|
||||
|
||||
Route::post(
|
||||
'{licenseId}/upload',
|
||||
[Licenses\LicenseFilesController::class, 'store']
|
||||
)->name('upload/license');
|
||||
|
||||
Route::delete(
|
||||
'{licenseId}/deletefile/{fileId}',
|
||||
[Licenses\LicenseFilesController::class, 'destroy']
|
||||
|
|
Loading…
Reference in a new issue