kernel pack, update and some fix

This commit is contained in:
2024-10-14 15:52:52 +03:00
parent 7cf3708e4d
commit d3d5e3a8e5
9 changed files with 147 additions and 59 deletions

View File

@ -48,5 +48,10 @@ $table->addAction(function ($row, $url) use ($moduleService){
return "<a class='btn btn-primary' href='$url/view/?slug=$slug' style='margin: 3px; width: 150px;' >Просмотр</a>";
});
$table->addAction(function ($row, $url) use ($moduleService){
$slug = $row['slug'];
return "<a class='btn btn-primary' href='$url/update/?slug=$slug' style='margin: 3px; width: 150px;' >Обновить</a>";
});
$table->create();
$table->render();