Fix confirm() syntax error in ProjectTable.php: replace malformed string concatenation with proper translation function call
This commit is contained in:
@@ -55,7 +55,7 @@ class ProjectTable extends DataTableComponent
|
||||
$this->addColumn('actions', __('Actions'))
|
||||
->setLabel(fn ($row) => '<div class="flex space-x-2">
|
||||
<a href="'.route('projects.edit', $row->id).'" class="btn btn-sm btn-primary">'.__('Edit').'</a>
|
||||
<form action="'.route('projects.destroy', $row->id).'" method="POST" onsubmit="return confirm(''.__('Are you sure you want to delete this project?').'');">
|
||||
<form action="'.route('projects.destroy', $row->id).'" method="POST" onsubmit="return confirm(__('Are you sure you want to delete this project?'));">
|
||||
'.csrf_field().'
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<button type="submit" class="btn btn-sm btn-error">'.__('Delete').'</button>
|
||||
@@ -99,7 +99,7 @@ class ProjectTable extends DataTableComponent
|
||||
Column::make(__('Actions'))
|
||||
->label(fn ($row) => '<div class="flex space-x-2">
|
||||
<a href="'.route('projects.edit', $row->id).'" class="btn btn-sm btn-primary">'.__('Edit').'</a>
|
||||
<form action="'.route('projects.destroy', $row->id).'" method="POST" onsubmit="return confirm(''.__('Are you sure you want to delete this project?').'');">
|
||||
<form action="'.route('projects.destroy', $row->id).'" method="POST" onsubmit="return confirm(__('Are you sure you want to delete this project?'));">
|
||||
'.csrf_field().'
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<button type="submit" class="btn btn-sm btn-error">'.__('Delete').'</button>
|
||||
|
||||
Reference in New Issue
Block a user