A free open source IT asset/license management system
More moved to new box+table method
snipea5e818f9700f
diff --git a/resources/views/categories/index.blade.php b/resources/views/categories/index.blade.phpindex 9f8754eef6..df83e366ff 100755--- a/resources/views/categories/index.blade.php+++ b/resources/views/categories/index.blade.php@@ -12,19 +12,20 @@<x-container><x-box>- <x-table.bulk-actions- id_divname='categoriesBulkEditToolbar'+ <x-slot:bulkactions>+ <x-table.bulk-actions+ name='category'action_route="{{route('categories.bulk.delete')}}"- id_formname="categoriesBulkForm"- id_button="bulkCategoryEditButton"model_name="category"- >+ >@can('delete', App\Models\Category::class)<option>Delete</option>@endcan- </x-table.bulk-actions>+ </x-table.bulk-actions>+ </x-slot:bulkactions><x-table+ name="category"buttons="categoryButtons"fixed_right_number="1"fixed_number="1"diff --git a/resources/views/manufacturers/index.blade.php b/resources/views/manufacturers/index.blade.phpindex 264c234fe5..da4e16effc 100755--- a/resources/views/manufacturers/index.blade.php+++ b/resources/views/manufacturers/index.blade.php@@ -26,41 +26,33 @@</form>@else- <x-table.bulk-actions- id_divname='manufacturersBulkEditToolbar'- action_route="{{route('manufacturers.bulk.delete')}}"- id_formname="manufacturersBulkForm"- id_button="bulkManufacturerEditButton"- model_name="manufacturer"- >- @can('delete', App\Models\Manufacturer::class)- <option>{{trans('general.delete')}}</option>- @endcan- </x-table.bulk-actions>+ <x-slot:bulkactions>+ <x-table.bulk-actions+ name='manufacturer'+ action_route="{{route('manufacturers.bulk.delete')}}"+ model_name="manufacturer"+ >+ @can('delete', App\Models\Manufacturer::class)+ <option>Delete</option>+ @endcan+ </x-table.bulk-actions>+ </x-slot:bulkactions>- <table- data-columns="{{ \App\Presenters\ManufacturerPresenter::dataTableLayout() }}"- data-cookie-id-table="manufacturersTable"- data-id-table="manufacturersTable"- data-advanced-search="false"- data-side-pagination="server"- data-sort-order="asc"- id="manufacturersTable"- {{-- begin stuff for bulk dropdown --}}- data-toolbar="#manufacturersBulkEditToolbar"- data-bulk-button-id="#bulkManufacturerEditButton"- data-bulk-form-id="#manufacturersBulkForm"- {{-- end stuff for bulk dropdown --}}- data-buttons="manufacturerButtons"- class="table table-striped snipe-table"- data-url="{{route('api.manufacturers.index', ['status' => e(request()->input('status')) ]) }}"- data-export-options='{- "fileName": "export-manufacturers-{{ date('Y-m-d') }}",- "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]- }'>- </table>- @endif+ <x-table+ name="manufacturer"+ buttons="manufacturerButtons"+ fixed_right_number="1"+ fixed_number="1"+ api_url="{{ route('api.manufacturers.index') }}"+ :presenter="\App\Presenters\ManufacturerPresenter::dataTableLayout()"+ export_filename="export-manufacturers-{{ date('Y-m-d') }}"+ />+++++ @endif</x-box></x-container>@stopdiff --git a/resources/views/models/index.blade.php b/resources/views/models/index.blade.phpindex 13edd735dd..382035dea4 100755--- a/resources/views/models/index.blade.php+++ b/resources/views/models/index.blade.php@@ -14,34 +14,30 @@{{-- Page content --}}@section('content')-<x-container>- <x-box>-- @include('partials.models-bulk-actions')- <table- data-columns="{{ \App\Presenters\AssetModelPresenter::dataTableLayout() }}"- data-cookie-id-table="asssetModelsTable"- data-id-table="asssetModelsTable"- data-show-footer="true"- data-side-pagination="server"- data-footer-style="footerStyle"- data-toolbar="#modelsBulkEditToolbar"- data-bulk-button-id="#bulkModelsEditButton"- data-bulk-form-id="#modelsBulkForm"- data-sort-order="asc"- id="asssetModelsTable"- data-buttons="modelButtons"- class="table table-striped snipe-table"- data-url="{{ route('api.models.index', ['status' => e(request('status'))]) }}"- data-export-options='{- "fileName": "export-models-{{ date('Y-m-d') }}",- "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]- }'>- </table>+ <x-box name="models">+++ <x-slot:bulkactions>+ <x-table.bulk-models />+ </x-slot:bulkactions>++ <x-table+ name="models"+ show_column_search="false"+ show_advanced_search="true"+ show_footer="true"+ buttons="modelButtons"+ fixed_right_number="2"+ fixed_number="1"+ toolbar_id="modelsToolbar"+ api_url="{{ route('api.models.index', ['status' => e(request('status'))]) }}"+ :presenter="\App\Presenters\AssetModelPresenter::dataTableLayout()"+ export_filename="export-models-{{ date('Y-m-d') }}"+ />+</x-box></x-container>-@stop@section('moar_scripts')diff --git a/resources/views/suppliers/index.blade.php b/resources/views/suppliers/index.blade.phpindex f3682181dc..cb0f60feea 100755--- a/resources/views/suppliers/index.blade.php+++ b/resources/views/suppliers/index.blade.php@@ -11,39 +11,29 @@<x-container><x-box>- <x-table.bulk-actions- id_divname='suppliersBulkEditToolbar'- action_route="{{route('suppliers.bulk.delete')}}"- id_formname="suppliersBulkForm"- id_button="bulkSupplierEditButton"- model_name="supplier"- >- @can('delete', App\Models\Supplier::class)- <option>Delete</option>- @endcan- </x-table.bulk-actions>+ <x-slot:bulkactions>+ <x-table.bulk-actions+ name='supplier'+ action_route="{{route('suppliers.bulk.delete')}}"+ model_name="supplier"+ >+ @can('delete', App\Models\Supplier::class)+ <option>{{ trans('general.delete') }}</option>+ @endcan+ </x-table.bulk-actions>+ </x-slot:bulkactions>+++ <x-table+ name="supplier"+ buttons="supplierButtons"+ fixed_right_number="1"+ fixed_number="1"+ api_url="{{ route('api.suppliers.index') }}"+ :presenter="\App\Presenters\SupplierPresenter::dataTableLayout()"+ export_filename="export-suppliers-{{ date('Y-m-d') }}"+ />- <table- data-columns="{{ \App\Presenters\SupplierPresenter::dataTableLayout() }}"- data-cookie-id-table="suppliersTable"- data-id-table="suppliersTable"- data-side-pagination="server"- data-sort-order="asc"- id="suppliersTable"- {{-- begin stuff for bulk dropdown --}}- data-toolbar="#suppliersBulkEditToolbar"- data-bulk-button-id="#bulkSupplierEditButton"- data-bulk-form-id="#suppliersBulkForm"- {{-- end stuff for bulk dropdown --}}- data-advanced-search="false"- data-buttons="supplierButtons"- class="table table-striped snipe-table"- data-url="{{ route('api.suppliers.index') }}"- data-export-options='{- "fileName": "export-suppliers-{{ date('Y-m-d') }}",- "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]- }'>- </table></x-box></x-container>@stop