A free open source IT asset/license management system
Moved files into table directory
snipe683395599f12
diff --git a/resources/views/blade/bulk-menus/assets.blade.php b/resources/views/blade/bulk-menus/assets.blade.phpdeleted file mode 100644index b89ec4ad04..0000000000--- a/resources/views/blade/bulk-menus/assets.blade.php+++ /dev/null@@ -1,49 +0,0 @@-@aware(['name'])-- <form- method="POST"- action="{{ route('hardware.bulkedit.show') }}"- accept-charset="UTF-8"- class="form-inline"- id="{{ Illuminate\Support\Str::camel($name) }}Form"- >- @csrf-- <div style="width:100% !important;">- {{-- 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">- <label for="bulk_actions">- <span class="sr-only">- {{ trans('button.bulk_actions') }}- </span>- </label>- <select name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="width: 350px !important;">- @if ((isset($status)) && ($status == 'Deleted'))- @can('delete', \App\Models\Asset::class)- <option value="restore">{{trans('button.restore')}}</option>- @endcan- @else-- @can('update', \App\Models\Asset::class)- <option value="edit">{{ trans('general.bulk_edit') }}</option>- <option value="maintenance">{{ trans('button.add_maintenance') }}</option>- @endcan-- @if((!isset($status)) || (($status != 'Deployed') && ($status != 'Archived')))- @can('checkout', \App\Models\Asset::class)- <option value="checkout">{{ trans('general.bulk_checkout') }}</option>- @endcan- @endif-- @can('delete', \App\Models\Asset::class)- <option value="delete">{{ trans('general.bulk_delete') }}</option>- @endcan-- <option value="labels">{{ trans_choice('button.generate_labels', 2) }}</option>- @endif- </select>-- <button class="btn btn-theme" id="{{ Illuminate\Support\Str::camel($name) }}Button" disabled>{{ trans('button.go') }}</button>- </div>- </form>diff --git a/resources/views/blade/table.blade.php b/resources/views/blade/table.blade.phpdeleted file mode 100644index c6ecea6496..0000000000--- a/resources/views/blade/table.blade.php+++ /dev/null@@ -1,38 +0,0 @@-@props([- 'presenter' => null,- 'buttons' => null,- 'export_filename' => 'export-'.date('Y-m-d'),- 'api_url' => null,- 'show_column_search' => false,- 'show_advanced_search' => false,-])--@aware(['name'])--<table- role="table"- class="table table-striped snipe-table"- data-cookie-id-table="{{ $name }}ListingTable"- data-id-table="{{ $name }}ListingTable"- data-sort-order="asc"- data-toolbar="#{{ Illuminate\Support\Str::camel($name) }}Toolbar"- data-bulk-button-id="#{{ Illuminate\Support\Str::camel($name) }}Button"- data-bulk-form-id="#{{ Illuminate\Support\Str::camel($name) }}Form"- id="{{ $name }}ListingTable"- data-show-columns-search="{{ $show_column_search }}"- data-show-advanced-search="{{ $show_advanced_search }}"- @if ($presenter)- data-columns="{{ $presenter }}"- @endif- @if ($buttons)- data-buttons="{{ $buttons }}"- @endif- @if ($api_url)- data-side-pagination="server"- data-url="{{ $api_url }}"- @endif- data-export-options='{- "fileName": "{{ $export_filename }}",- "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]-}'>-</table>\ No newline at end of filediff --git a/resources/views/blade/table/bulk-users.blade.php b/resources/views/blade/table/bulk-users.blade.phpnew file mode 100644index 0000000000..6d7f668b0b--- /dev/null+++ b/resources/views/blade/table/bulk-users.blade.php@@ -0,0 +1,38 @@+@aware(['name'])++<form+ method="POST"+ action="{{ route('users/bulkedit') }}"+ accept-charset="UTF-8"+ class="form-inline"+ id="{{ Illuminate\Support\Str::camel($name) }}Form"+>+ @csrf++ <div style="width:100% !important;">+ {{-- The sort and order will only be used if the cookie is actually empty (like on first-use) --}}+ <input name="sort" type="hidden" value="users.id">+ <input name="order" type="hidden" value="asc">+ <label for="bulk_actions">+ <span class="sr-only">+ {{ trans('button.bulk_actions') }}+ </span>+ </label>+ <select name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="width: 350px !important;">+ @can('update', \App\Models\User::class)+ <option value="edit">{{ trans('general.bulk_edit') }}</option>+ <option value="send_assigned">{{ trans('admin/users/general.email_assigned') }}</option>+ @endcan++ @can('delete', \App\Models\User::class)+ <option value="delete">{!! trans('general.bulk_checkin_delete') !!}</option>+ <option value="merge">{!! trans('general.merge_users') !!}</option>+ @endcan++ <option value="bulkpasswordreset">{{ trans('button.send_password_link') }}</option>+ <option value="print">{{ trans('admin/users/general.print_assigned') }}</option>+ </select>++ <button class="btn btn-theme" id="{{ Illuminate\Support\Str::camel($name) }}Button" disabled>{{ trans('button.go') }}</button>+ </div>+</form>diff --git a/resources/views/components/tables/bulk-actions.blade.php b/resources/views/components/tables/bulk-actions.blade.phpdeleted file mode 100644index 807cd76882..0000000000--- a/resources/views/components/tables/bulk-actions.blade.php+++ /dev/null@@ -1,35 +0,0 @@-@props([- 'id_divname',- 'id_formname',- 'id_button',- 'action_route',- 'action_method',- 'model_name' => 'asset',- ])--<div id="{{ $id_divname }}" style="min-width:400px">- <form- method="POST"- action="{{ $action_route }}"- accept-charset="UTF-8"- class="form-inline"- id="{{ $id_formname }}"- >- @csrf-- {{-- The sort and order will only be used if the cookie is actually empty (like on first-use)--}}- <input name="sort" type="hidden" value="{{ "{$model_name}.id" }}">- <input name="order" type="hidden" value="asc">- <label for="bulk_actions">- <span class="sr-only">- {{ trans('button.bulk_actions') }}- </span>- </label>- <select name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="min-width: 350px;">- {{ $slot }}- </select>-- <button class="btn btn-theme" id="{{ $id_button }}"- disabled>{{ trans('button.go') }}</button>- </form>-</div>\ No newline at end of file