For later

This commit is contained in:
Julian Prieber 2024-01-04 17:11:30 +01:00
parent b03bc81762
commit c72dbc790f
2 changed files with 6 additions and 6 deletions

View File

@ -23,10 +23,10 @@ class UserTable extends DataTableComponent
public function columns(): array public function columns(): array
{ {
return [ return [
Column::make("", "id") // Column::make("", "id")
->format(function ($value, $row, Column $column) { // ->format(function ($value, $row, Column $column) {
return view('components.table-components.select', ['user' => $row]); // return view('components.table-components.select', ['user' => $row]);
}), // }),
Column::make(__('messages.ID'), "id") Column::make(__('messages.ID'), "id")
->sortable() ->sortable()
->searchable(), ->searchable(),

View File

@ -98,7 +98,7 @@
attachClickEventListeners('user-email', handleUserClick); attachClickEventListeners('user-email', handleUserClick);
attachClickEventListeners('user-block', handleUserClick); attachClickEventListeners('user-block', handleUserClick);
</script> </script>
<script type="text/javascript"> {{-- <script type="text/javascript">
// Get the delete button div // Get the delete button div
var deleteButtonDiv = document.getElementById('select-active'); var deleteButtonDiv = document.getElementById('select-active');
@ -155,7 +155,7 @@ var deleteSelectedUsers = function() {
// Add event listener to delete button // Add event listener to delete button
deleteButton.addEventListener('click', deleteSelectedUsers); deleteButton.addEventListener('click', deleteSelectedUsers);
</script> </script> --}}
</div> </div>
</section> </section>