module set and unset, dependencies
This commit is contained in:
@ -30,12 +30,14 @@ $table->addAction(function ($row, $url) use ($moduleService){
|
||||
if ($moduleService->isActive($slug)){
|
||||
$label = "Деактивировать";
|
||||
$btn_type = "warning";
|
||||
$btn = "<a class='btn btn-$btn_type' href='$url/deactivate/?slug=$slug' style='margin: 3px; width: 150px;' >$label</a>";
|
||||
|
||||
}
|
||||
else {
|
||||
$label = "Активировать";
|
||||
$btn_type = "primary";
|
||||
$btn = "<a class='btn btn-$btn_type' href='$url/activate/?slug=$slug' style='margin: 3px; width: 150px;' >$label</a>";
|
||||
}
|
||||
$btn = "<a class='btn btn-$btn_type' href='$url/activate/?slug=$slug' style='margin: 3px; width: 150px;' >$label</a>";
|
||||
|
||||
return $btn;
|
||||
});
|
||||
|
Reference in New Issue
Block a user