From a3f2c75aeebf39008d2193d55577648e5253a466 Mon Sep 17 00:00:00 2001 From: Johannes Rauh Date: Wed, 6 May 2026 07:23:43 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20`FakeFormElement`=20from=20core=20?= =?UTF-8?q?=E2=80=94=20moved=20to=20icinga-totp=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Web/Form/Element/FakeFormElement.php | 69 ------------------- 1 file changed, 69 deletions(-) delete mode 100644 library/Icinga/Web/Form/Element/FakeFormElement.php diff --git a/library/Icinga/Web/Form/Element/FakeFormElement.php b/library/Icinga/Web/Form/Element/FakeFormElement.php deleted file mode 100644 index 102f19c37..000000000 --- a/library/Icinga/Web/Form/Element/FakeFormElement.php +++ /dev/null @@ -1,69 +0,0 @@ - - *
- *
- * - * - *
- *
- * $this->content - *
- * - * - *
- * - */ -class FakeFormElement extends BaseHtmlElement -{ - protected $tag = 'div'; - - protected $defaultAttributes = ['class' => 'control-group']; - - /** - * @param ValidHtml $content The element to add to the form - * @param ?string $label The label to render in the control-label-group element - * @param ?string $description The description to show for the element - */ - public function __construct( - protected ValidHtml $content, - protected ?string $label = null, - protected ?string $description = null - ) { - } - - protected function assemble(): void - { - $this->addHtml( - HtmlElement::create( - 'div', - Attributes::create(['class' => 'control-label-group']), - $this->label ? HtmlElement::create('label', null, new Text($this->label)) : null - ) - ); - $this->addHtml( - HtmlElement::create('div', Attributes::create(['class' => 'fake-form-element']), $this->content) - ); - if ($this->description) { - $this->addHtml( - new Icon('info-circle', Attributes::create(['class' => 'control-info', 'title' => $this->description])) - ); - } - } -}