summaryrefslogtreecommitdiffstats
path: root/application/forms/ConfigureMailForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/ConfigureMailForm.php')
-rw-r--r--application/forms/ConfigureMailForm.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/application/forms/ConfigureMailForm.php b/application/forms/ConfigureMailForm.php
new file mode 100644
index 0000000..c27c934
--- /dev/null
+++ b/application/forms/ConfigureMailForm.php
@@ -0,0 +1,23 @@
+<?php
+// Icinga Reporting | (c) 2019 Icinga GmbH | GPLv2
+
+namespace Icinga\Module\Reporting\Forms;
+
+use Icinga\Forms\ConfigForm;
+
+class ConfigureMailForm extends ConfigForm
+{
+ public function init()
+ {
+ $this->setName('reporting_mail');
+ $this->setSubmitLabel($this->translate('Save Changes'));
+ }
+
+ public function createElements(array $formData)
+ {
+ $this->addElement('text', 'mail_from', [
+ 'label' => $this->translate('From'),
+ 'placeholder' => 'reporting@icinga'
+ ]);
+ }
+}