option CRUD
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\menu;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class MenuDeleteActionColumn extends ActionColumn
|
||||
{
|
||||
|
||||
protected string $prefix = "/delete/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-danger'>Удалить</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\menu;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class MenuDeleteActionColumn extends ActionColumn
|
||||
//{
|
||||
//
|
||||
// protected string $prefix = "/delete/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-danger'>Удалить</a> ";
|
||||
// }
|
||||
//}
|
@ -1,17 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\menu;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class MenuEditActionColumn extends ActionColumn
|
||||
{
|
||||
|
||||
protected string $prefix = "/update/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-success'>Редактировать</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\menu;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class MenuEditActionColumn extends ActionColumn
|
||||
//{
|
||||
//
|
||||
// protected string $prefix = "/update/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-success'>Редактировать</a> ";
|
||||
// }
|
||||
//}
|
@ -1,17 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\menu;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class MenuViewActionColumn extends ActionColumn
|
||||
{
|
||||
|
||||
protected string $prefix = "/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\menu;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class MenuViewActionColumn extends ActionColumn
|
||||
//{
|
||||
//
|
||||
// protected string $prefix = "/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
|
||||
// }
|
||||
//}
|
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\post;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class PostDeleteActionColumn extends ActionColumn
|
||||
{
|
||||
protected string $prefix = "/delete/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-danger'>Удалить</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\post;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class PostDeleteActionColumn extends ActionColumn
|
||||
//{
|
||||
// protected string $prefix = "/delete/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-danger'>Удалить</a> ";
|
||||
// }
|
||||
//}
|
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\post;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class PostEditActionColumn extends ActionColumn
|
||||
{
|
||||
protected string $prefix = "/update/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-success'>Редактировать</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\post;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class PostEditActionColumn extends ActionColumn
|
||||
//{
|
||||
// protected string $prefix = "/update/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-success'>Редактировать</a> ";
|
||||
// }
|
||||
//}
|
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\post;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class PostViewActionColumn extends actionColumn
|
||||
{
|
||||
protected string $prefix = "/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\post;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class PostViewActionColumn extends actionColumn
|
||||
//{
|
||||
// protected string $prefix = "/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
|
||||
// }
|
||||
//}
|
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\user;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class UserDeleteActionColumn extends ActionColumn
|
||||
{
|
||||
protected string $prefix = "/delete/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-danger'>Удалить</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\user;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class UserDeleteActionColumn extends ActionColumn
|
||||
//{
|
||||
// protected string $prefix = "/delete/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-danger'>Удалить</a> ";
|
||||
// }
|
||||
//}
|
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\user;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class UserEditActionColumn extends ActionColumn
|
||||
{
|
||||
protected string $prefix = "/update/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-success'>Редактировать</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\user;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class UserEditActionColumn extends ActionColumn
|
||||
//{
|
||||
// protected string $prefix = "/update/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-success'>Редактировать</a> ";
|
||||
// }
|
||||
//}
|
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\tables\columns\user;
|
||||
|
||||
use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
|
||||
class UserViewActionColumn extends ActionColumn
|
||||
{
|
||||
protected string $prefix = "/";
|
||||
|
||||
public function fetch(): string
|
||||
{
|
||||
$link = $this->baseUrl . $this->prefix . $this->id;
|
||||
return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace app\tables\columns\user;
|
||||
//
|
||||
//use Itguild\Tables\ActionColumn\ActionColumn;
|
||||
//
|
||||
//class UserViewActionColumn extends ActionColumn
|
||||
//{
|
||||
// protected string $prefix = "/";
|
||||
//
|
||||
// public function fetch(): string
|
||||
// {
|
||||
// $link = $this->baseUrl . $this->prefix . $this->id;
|
||||
// return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
|
||||
// }
|
||||
//}
|
Reference in New Issue
Block a user