diff --git a/CHANGELOG.md b/CHANGELOG.md index ab714ae3..87456f22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELEASED] +### Changed + +- Migrate config form to Twig template (Bootstrap 5 card layout) + ### Fixed - Fix tag search diff --git a/inc/config.class.php b/inc/config.class.php index 7a347fca..726b98cb 100644 --- a/inc/config.class.php +++ b/inc/config.class.php @@ -28,13 +28,14 @@ * ------------------------------------------------------------------------- */ +use Glpi\Application\View\TemplateRenderer; + class PluginTagConfig extends CommonDBTM { protected static $notable = true; public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { - if (!$withtemplate && $item->getType() === 'Config') { return self::createTabEntry(__s('Tag Management', 'tag'), 0, $item::getType(), PluginTagTag::getIcon()); } @@ -50,35 +51,14 @@ public function showConfigForm() $config = Config::getConfigurationValues('plugin:Tag'); - echo "