This commit is contained in:
Билай Станислав 2024-11-20 16:49:19 +03:00
commit 65b332811f
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,8 @@
namespace app\modules\tag;
use itguild\forms\builders\TextInputBuilder;
use itguild\forms\Form;
use kernel\Module;
use kernel\modules\menu\service\MenuService;
use kernel\services\MigrationService;
@ -35,4 +37,11 @@ class TagModule extends Module
{
$this->menuService->removeItemBySlug("tag");
}
public function formInputs(): void
{
$input = TextInputBuilder::build("tags", ['class' => 'form-control', 'placeholder' => "Теги"]);
$input->setLabel("Теги");
$input->create()->render();
}
}

View File

@ -3,6 +3,7 @@
"version": "0.2",
"author": "ITGuild",
"slug": "tag",
"type": "additional_property",
"description": "Tags module",
"app_module_path": "{APP}/modules/{slug}",
"module_class": "app\\modules\\tag\\TagModule",