Skip to content

Commit bb88818

Browse files
author
Timm Ortloff
committed
Use PrefixSubmitButton Trait in CompatForm
1 parent e8ff49c commit bb88818

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Compat/CompatForm.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
use ipl\Html\HtmlDocument;
77
use ipl\Html\HtmlString;
88
use ipl\I18n\Translation;
9+
use ipl\Web\Common\PrefixSubmitButton;
910
use ipl\Web\FormDecorator\IcingaFormDecorator;
1011

1112
class CompatForm extends Form
1213
{
1314
use Translation;
15+
use PrefixSubmitButton;
1416

1517
protected $defaultAttributes = ['class' => 'icinga-form icinga-controls'];
1618

@@ -19,7 +21,8 @@ public function renderContent(): string
1921
if (count($this->submitElements) > 1) {
2022
return (new HtmlDocument())
2123
->setHtmlContent(
22-
$this->createSubmitButton($this->submitButton), new HtmlString(parent::renderContent())
24+
$this->createSubmitButton($this->submitButton),
25+
new HtmlString(parent::renderContent())
2326
)
2427
->render();
2528
}

0 commit comments

Comments
 (0)