summaryrefslogtreecommitdiffstats
path: root/library/Reporting/Web/Forms/SendForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Reporting/Web/Forms/SendForm.php')
-rw-r--r--library/Reporting/Web/Forms/SendForm.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/library/Reporting/Web/Forms/SendForm.php b/library/Reporting/Web/Forms/SendForm.php
index 03b691c..e3cf3ec 100644
--- a/library/Reporting/Web/Forms/SendForm.php
+++ b/library/Reporting/Web/Forms/SendForm.php
@@ -1,18 +1,16 @@
<?php
+
// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2
namespace Icinga\Module\Reporting\Web\Forms;
use Icinga\Module\Reporting\Actions\SendMail;
-use Icinga\Module\Reporting\Database;
use Icinga\Module\Reporting\ProvidedReports;
use Icinga\Module\Reporting\Report;
-use Icinga\Module\Reporting\Web\Forms\Decorator\CompatDecorator;
use ipl\Web\Compat\CompatForm;
class SendForm extends CompatForm
{
- use Database;
use ProvidedReports;
/** @var Report */
@@ -27,12 +25,10 @@ class SendForm extends CompatForm
protected function assemble()
{
- $this->setDefaultElementDecorator(new CompatDecorator());
-
(new SendMail())->initConfigForm($this, $this->report);
$this->addElement('submit', 'submit', [
- 'label' => 'Send Report'
+ 'label' => $this->translate('Send Report')
]);
}