Skip to content

A free open source IT asset/license management system

Refactorered bulk action component

snipe1b4552cf300b
diff --git a/resources/views/blade/table/bulk-actions.blade.php b/resources/views/blade/table/bulk-actions.blade.php
index 7a626a09d4..5b7a82d5fd 100644
--- a/resources/views/blade/table/bulk-actions.blade.php
+++ b/resources/views/blade/table/bulk-actions.blade.php
@@ -1,19 +1,16 @@
@props([
- 'id_divname',
- 'id_formname',
- 'id_button',
'action_route',
- 'action_method',
'model_name' => 'asset',
])
+@aware(['name'])
-<div id="{{ $id_divname }}" style="min-width:400px">
+<div id="{{ Illuminate\Support\Str::camel($name) }}Form" style="min-width:400px">
<form
method="POST"
action="{{ $action_route }}"
accept-charset="UTF-8"
class="form-inline"
- id="{{ $id_formname }}"
+ id="{{ Illuminate\Support\Str::camel($name) }}Form"
>
@csrf
@@ -29,6 +26,6 @@
{{ $slot }}
</select>
- <button class="btn btn-theme" id="{{ $id_button }}" disabled>{{ trans('button.go') }}</button>
+ <button class="btn btn-theme" id="{{ Illuminate\Support\Str::camel($name) }}Button" disabled>{{ trans('button.go') }}</button>
</form>
</div>
\ No newline at end of file