Skip to content

A free open source IT asset/license management system

Bulk edit not working on locations now?

snipe4c493efb24ea
diff --git a/resources/views/blade/table/locations.blade.php b/resources/views/blade/table/locations.blade.php
index e0b1786f11..69bfa42d40 100644
--- a/resources/views/blade/table/locations.blade.php
+++ b/resources/views/blade/table/locations.blade.php
@@ -9,19 +9,24 @@
<!-- start locations tab pane -->
@can('view', \App\Models\Location::class)
- <x-slot:table_header>
- {{ $table_header }}
- </x-slot:table_header>
+ @include('partials.locations-bulk-actions')
<x-slot:bulkactions>
- @include('partials.locations-bulk-actions')
+ <x-table.bulk-actions
+ name='location'
+ action_route="{{ route('locations.bulkdelete.show') }}"
+ model_name="location">
+ @can('delete', App\Models\Location::class)
+ <option>{{ trans('general.delete') }}</option>
+ @endcan
+ </x-table.bulk-actions>
</x-slot:bulkactions>
<x-table
:$presenter
:$fixed_right_number
show_column_search="true"
- show_advanced_search="true"
+ show_advanced_search="false"
buttons="locationButtons"
api_url="{{ $route }}"
export_filename="export-{{ str_slug($name) }}-locations-{{ date('Y-m-d') }}"