mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
snippet rewrite
This commit is contained in:
parent
84134b45e6
commit
d3675831bb
|
@ -862,12 +862,8 @@
|
||||||
@can('delete', $asset)
|
@can('delete', $asset)
|
||||||
@if ($asset->deleted_at=='')
|
@if ($asset->deleted_at=='')
|
||||||
<div class="col-md-12" style="padding-top: 30px; padding-bottom: 30px;">
|
<div class="col-md-12" style="padding-top: 30px; padding-bottom: 30px;">
|
||||||
<form href="{{ route('hardware/delete', ['assetId' => $asset->id]) }}" data-content="{{ trans('general.delete_confirm', ['item' => $asset->id]) }}" method="POST" data-title="{{ trans('general.delete') }}">
|
<button class="btn btn-block btn-danger delete-asset" data-toggle="modal" data-title="{{ trans('general.delete') }}" data-content="{{ trans('general.delete_confirm', ['item' => $asset->asset_tag]) }}" data-target="#dataConfirmModal">{{ trans('general.delete') }} </button>
|
||||||
{{ csrf_field() }}
|
<span class="sr-only">{{ trans('general.delete') }}</span>
|
||||||
{{ method_field("DELETE") }}
|
|
||||||
<button style="width: 100%;" class="btn btn-sm btn-warning hidden-print">{{ trans('button.delete')}}</button>
|
|
||||||
<span class="sr-only">{{ trans('general.delete') }}</span>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@endcan
|
@endcan
|
||||||
|
|
Loading…
Reference in a new issue