Merge pull request #13763 from Godmartinz/snipeit_v7_laravel10

fixed the bulk edit button on Asset tab
This commit is contained in:
snipe 2023-10-18 18:51:41 +01:00 committed by GitHub
commit da30292d84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1094,7 +1094,7 @@
<option value="delete">{{ trans('button.delete')}}</option>
<option value="labels">{{ trans_choice('button.generate_labels', 2) }}</option>
</select>
<button class="btn btn-primary" id="bulkEdit" disabled>{{ trans('button.go') }}</button>
<button class="btn btn-primary" id="{{ (isset($id_button)) ? $id_button : 'bulkAssetEditButton' }}" disabled>{{ trans('button.go') }}</button>
</div>
<!-- checked out assets table -->
@ -1112,6 +1112,7 @@
data-show-export="true"
data-show-refresh="true"
data-sort-order="asc"
data-bulk-button-id="#bulkAssetEditButton"
id="assetsListingTable"
class="table table-striped snipe-table"
data-url="{{route('api.assets.index',['assigned_to' => $asset->id, 'assigned_type' => 'App\Models\Asset']) }}"