收口后台表单确认事件
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
</button>
|
||||
@if (Auth::id() === 1)
|
||||
<form action="{{ route('admin.departments.destroy', $dept->id) }}" method="POST"
|
||||
onsubmit="return confirm('确定删除部门【{{ $dept->name }}】?该操作会同时删除该部门所有职务(有在职人员时拒绝删除)。')">
|
||||
data-admin-confirm="确定删除部门【{{ $dept->name }}】?该操作会同时删除该部门所有职务(有在职人员时拒绝删除)。">
|
||||
@csrf @method('DELETE')
|
||||
<button type="submit"
|
||||
class="text-xs bg-red-50 text-red-600 font-bold px-3 py-1.5 rounded hover:bg-red-600 hover:text-white transition">
|
||||
|
||||
Reference in New Issue
Block a user