diff --git a/app/modules/tag/TagModule.php b/app/modules/tag/TagModule.php index b2f0ffd..09c0eb5 100644 --- a/app/modules/tag/TagModule.php +++ b/app/modules/tag/TagModule.php @@ -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(); + } } \ No newline at end of file diff --git a/app/modules/tag/manifest.json b/app/modules/tag/manifest.json index 3967dd6..b164b3e 100644 --- a/app/modules/tag/manifest.json +++ b/app/modules/tag/manifest.json @@ -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",