user-management edit function fixed

This commit is contained in:
armiejean 2025-05-19 19:15:40 +08:00
parent de06c08832
commit 20e0c6c680
2 changed files with 2 additions and 3 deletions

View File

@ -28,7 +28,7 @@
['name' => 'Email', 'key' => 'email', 'sortable' => true],
['name' => 'Status', 'key' => 'status', 'sortable' => true],
],
'actions' => ['view', 'edit', 'delete'],
'actions' => ['view', 'delete'],
'showAddButton' => true,
'addButtonUrl' => route('user-management.create'),
'showCheckboxes' => true,

View File

@ -42,8 +42,7 @@
@endif
<div class="text-end">
<a href="{{ route('user.management') }}" class="btn btn-primary">Back to Users</a>
<a href="{{ route('user-management.edit', $user['username']) }}" class="btn btn-primary">Edit</a>
<a href="{{ route('user-management.edit', $user['admin_uuid']) }}" class="btn btn-primary">Edit</a>
</div>
</div>
</div>