We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8ff49c commit bb88818Copy full SHA for bb88818
1 file changed
src/Compat/CompatForm.php
@@ -6,11 +6,13 @@
6
use ipl\Html\HtmlDocument;
7
use ipl\Html\HtmlString;
8
use ipl\I18n\Translation;
9
+use ipl\Web\Common\PrefixSubmitButton;
10
use ipl\Web\FormDecorator\IcingaFormDecorator;
11
12
class CompatForm extends Form
13
{
14
use Translation;
15
+ use PrefixSubmitButton;
16
17
protected $defaultAttributes = ['class' => 'icinga-form icinga-controls'];
18
@@ -19,7 +21,8 @@ public function renderContent(): string
19
21
if (count($this->submitElements) > 1) {
20
22
return (new HtmlDocument())
23
->setHtmlContent(
- $this->createSubmitButton($this->submitButton), new HtmlString(parent::renderContent())
24
+ $this->createSubmitButton($this->submitButton),
25
+ new HtmlString(parent::renderContent())
26
)
27
->render();
28
}
0 commit comments