diff --git a/components/ILIAS/TestQuestionPool/TestQuestionPool.php b/components/ILIAS/TestQuestionPool/TestQuestionPool.php index 9d663d84cb8d..c74721fd31ec 100644 --- a/components/ILIAS/TestQuestionPool/TestQuestionPool.php +++ b/components/ILIAS/TestQuestionPool/TestQuestionPool.php @@ -87,5 +87,9 @@ public function init( new Component\Resource\ComponentJS($this, 'js/dist/bootstrap-tagsinput_2015_25_03.js'); $contribute[Component\Resource\PublicAsset::class] = fn() => new Component\Resource\ComponentJS($this, 'js/dist/typeahead_0.11.1.js'); + $contribute[Component\Resource\PublicAsset::class] = fn() => + new Component\Resource\ComponentCSS($this, 'css/lac_legend.css'); + $contribute[Component\Resource\PublicAsset::class] = fn() => + new Component\Resource\ComponentCSS($this, 'css/bootstrap-tagsinput_2015_25_03.css'); } } diff --git a/components/ILIAS/TestQuestionPool/classes/forms/class.ilAssQuestionSkillAssignmentPropertyFormGUI.php b/components/ILIAS/TestQuestionPool/classes/forms/class.ilAssQuestionSkillAssignmentPropertyFormGUI.php index 93ace84bb27f..8babfd8957b4 100755 --- a/components/ILIAS/TestQuestionPool/classes/forms/class.ilAssQuestionSkillAssignmentPropertyFormGUI.php +++ b/components/ILIAS/TestQuestionPool/classes/forms/class.ilAssQuestionSkillAssignmentPropertyFormGUI.php @@ -45,7 +45,6 @@ public function __construct( global $DIC; $this->ui_factory = $DIC['ui.factory']; $this->ui_renderer = $DIC['ui.renderer']; - parent::__construct(); } diff --git a/components/ILIAS/TestQuestionPool/classes/forms/class.ilTagInputGUI.php b/components/ILIAS/TestQuestionPool/classes/forms/class.ilTagInputGUI.php index 018043f5eeb3..e19734fd50c6 100755 --- a/components/ILIAS/TestQuestionPool/classes/forms/class.ilTagInputGUI.php +++ b/components/ILIAS/TestQuestionPool/classes/forms/class.ilTagInputGUI.php @@ -144,7 +144,7 @@ public function __construct($a_title = "", $a_postvar = "") $this->setType("tag_input"); $this->tpl->addJavaScript('assets/js/bootstrap-tagsinput_2015_25_03.js'); $this->tpl->addJavaScript('assets/js/typeahead_0.11.1.js'); - $this->tpl->addCss('./components/ILIAS/TestQuestionPool/templates/default/bootstrap-tagsinput_2015_25_03.css'); + $this->tpl->addCss('assets/css/bootstrap-tagsinput_2015_25_03.css'); } /** @@ -170,7 +170,7 @@ public function checkInput(): bool $valid = true; $values = array_filter($this->strArray($this->getPostVar())); - if($values === [] && $this->getRequired()) { + if ($values === [] && $this->getRequired()) { $this->setAlert($lng->txt("msg_input_is_required")); return false; } diff --git a/components/ILIAS/TestQuestionPool/classes/questions/LogicalAnswerCompare/class.ilAssLacLegendGUI.php b/components/ILIAS/TestQuestionPool/classes/questions/LogicalAnswerCompare/class.ilAssLacLegendGUI.php index 2c1d680396d5..1b840056608b 100755 --- a/components/ILIAS/TestQuestionPool/classes/questions/LogicalAnswerCompare/class.ilAssLacLegendGUI.php +++ b/components/ILIAS/TestQuestionPool/classes/questions/LogicalAnswerCompare/class.ilAssLacLegendGUI.php @@ -84,7 +84,7 @@ public function setQuestionOBJ(assQuestion $questionOBJ): void */ public function get(): \ILIAS\UI\Component\Modal\Modal { - $this->pageTemplate->addCss('components/ILIAS/TestQuestionPool/templates/default/lac_legend.css'); + $this->pageTemplate->addCss('assets/css/lac_legend.css'); $tpl = $this->getTemplate(); diff --git a/components/ILIAS/TestQuestionPool/templates/default/bootstrap-tagsinput_2015_25_03.css b/components/ILIAS/TestQuestionPool/resources/css/bootstrap-tagsinput_2015_25_03.css similarity index 100% rename from components/ILIAS/TestQuestionPool/templates/default/bootstrap-tagsinput_2015_25_03.css rename to components/ILIAS/TestQuestionPool/resources/css/bootstrap-tagsinput_2015_25_03.css diff --git a/components/ILIAS/TestQuestionPool/templates/default/lac_legend.css b/components/ILIAS/TestQuestionPool/resources/css/lac_legend.css similarity index 100% rename from components/ILIAS/TestQuestionPool/templates/default/lac_legend.css rename to components/ILIAS/TestQuestionPool/resources/css/lac_legend.css