2022-10-20 19:06:58 -07:00
|
|
|
<div id="{{ (isset($id_divname)) ? $id_divname : 'assetsBulkEditToolbar' }}" style="min-width:400px">
|
|
|
|
{{ Form::open([
|
2022-05-06 05:11:52 -07:00
|
|
|
'method' => 'POST',
|
|
|
|
'route' => ['hardware/bulkedit'],
|
|
|
|
'class' => 'form-inline',
|
2022-10-20 19:06:58 -07:00
|
|
|
'id' => (isset($id_formname)) ? $id_formname : 'assetsBulkForm',
|
|
|
|
]) }}
|
2022-05-06 05:11:52 -07:00
|
|
|
|
2024-01-24 11:09:20 -08:00
|
|
|
{{-- The sort and order will only be used if the cookie is actually empty (like on first-use) --}}
|
|
|
|
<input name="sort" type="hidden" value="assets.id">
|
|
|
|
<input name="order" type="hidden" value="asc">
|
2022-05-06 05:11:52 -07:00
|
|
|
<label for="bulk_actions">
|
|
|
|
<span class="sr-only">
|
|
|
|
{{ trans('button.bulk_actions') }}
|
|
|
|
</span>
|
|
|
|
</label>
|
2023-03-18 00:14:57 -07:00
|
|
|
<select name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="min-width: 350px;">
|
2023-03-30 14:50:56 -07:00
|
|
|
@if((isset($status)) && ($status == 'Deleted'))
|
2023-03-29 17:53:04 -07:00
|
|
|
@can('delete', \App\Models\Asset::class)
|
2023-03-29 15:34:36 -07:00
|
|
|
<option value="restore">{{trans('button.restore')}}</option>
|
2023-03-29 17:53:04 -07:00
|
|
|
@endcan
|
2023-03-30 14:44:38 -07:00
|
|
|
@else
|
2022-06-05 22:41:53 -07:00
|
|
|
@can('update', \App\Models\Asset::class)
|
|
|
|
<option value="edit">{{ trans('button.edit') }}</option>
|
|
|
|
@endcan
|
|
|
|
@can('delete', \App\Models\Asset::class)
|
|
|
|
<option value="delete">{{ trans('button.delete') }}</option>
|
|
|
|
@endcan
|
2022-10-11 12:00:15 -07:00
|
|
|
<option value="labels" accesskey="l">{{ trans_choice('button.generate_labels', 2) }}</option>
|
2023-03-29 15:34:36 -07:00
|
|
|
@endif
|
2022-05-06 05:11:52 -07:00
|
|
|
</select>
|
|
|
|
|
2022-10-20 19:06:58 -07:00
|
|
|
<button class="btn btn-primary" id="{{ (isset($id_button)) ? $id_button : 'bulkAssetEditButton' }}" disabled>{{ trans('button.go') }}</button>
|
2022-05-06 05:11:52 -07:00
|
|
|
{{ Form::close() }}
|
2022-06-05 22:41:53 -07:00
|
|
|
</div>
|