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])) - ); - } - } -}