This commit is contained in:
kali
2024-04-05 18:47:38 +03:00
parent 38ec704a03
commit 569c9348ba
10 changed files with 130 additions and 43 deletions

View File

@ -0,0 +1,14 @@
<?php
namespace itguild\forms\table\ActionColumn;
class DeleteActionColumn extends ActionColumn
{
protected string $prefix = "/form-delete/";
public function fetch(): string
{
$link = $this->baseUrl . $this->prefix . $this->id;
return " <a href='$link' class='btn btn-danger'>Удалить</a> ";
}
}