option CRUD

This commit is contained in:
2024-09-23 15:33:48 +03:00
parent f4971f1c7d
commit 0f05bc2391
35 changed files with 737 additions and 147 deletions

View File

@ -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> ";
// }
//}

View File

@ -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> ";
// }
//}

View File

@ -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> ";
// }
//}

View File

@ -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> ";
// }
//}

View File

@ -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> ";
// }
//}

View File

@ -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> ";
// }
//}

View File

@ -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> ";
// }
//}

View File

@ -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> ";
// }
//}

View File

@ -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> ";
// }
//}