Skip to content

A free open source IT asset/license management system

Added model bulk component

snipe066cf81233a5
diff --git a/resources/views/blade/table/bulk-models.blade.php b/resources/views/blade/table/bulk-models.blade.php
new file mode 100644
index 0000000000..4b4e52fe39
--- /dev/null
+++ b/resources/views/blade/table/bulk-models.blade.php
@@ -0,0 +1,31 @@
+@aware(['name'])
+
+
+ <form
+ method="POST"
+ action="{{route('models.bulkedit.index')}}"
+ accept-charset="UTF-8"
+ class="form-inline"
+ id="{{ Illuminate\Support\Str::camel($name) }}Form"
+ >
+ @csrf
+ @if (request('status')!='deleted')
+ @can('view', \App\Models\AssetModel::class)
+ <div style="width:100% !important;">
+ <label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label>
+ <select name="bulk_actions" class="form-control select2" style="width: 200px;" aria-label="bulk_actions">
+ @can('delete', \App\Models\AssetModel::class)
+ <option value="edit">{{ trans('general.bulk_edit') }}</option>
+ @endcan
+ @can('delete', \App\Models\AssetModel::class)
+ <option value="delete">{{ trans('general.bulk_delete') }}</option>
+ @endcan
+ </select>
+ <button class="btn btn-theme" id="{{ Illuminate\Support\Str::camel($name) }}Button" disabled>{{ trans('button.go') }}</button>
+ </div>
+ @endcan
+ @endif
+ </form>
+
+
+