icingadb-web/library/Icingadb/Setup/WelcomePage.php
Eric Lippmann 272e791390 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +01:00

57 lines
1.5 KiB
PHP

<?php
// SPDX-FileCopyrightText: 2020 Icinga GmbH <https://icinga.com>
// SPDX-License-Identifier: GPL-3.0-or-later
namespace Icinga\Module\Icingadb\Setup;
use Icinga\Web\Form;
class WelcomePage extends Form
{
public function init()
{
$this->setName('setup_icingadb_welcome');
}
public function createElements(array $formData)
{
$this->addElement(
'note',
'welcome',
array(
'value' => t(
'Welcome to the configuration of Icinga DB Web!'
),
'decorators' => array(
'ViewHelper',
array('HtmlTag', array('tag' => 'h2'))
)
)
);
$this->addElement(
'note',
'description_1',
array(
'value' => '<p>' . t(
'Icinga DB Web is the UI for Icinga DB and provides'
. ' a graphical interface to your monitoring environment.'
) . '</p>',
'decorators' => array('ViewHelper')
)
);
$this->addElement(
'note',
'description_2',
array(
'value' => '<p>' . t(
'The wizard will guide you through the configuration to'
. ' establish a connection with Icinga DB and Icinga 2.'
) . '</p>',
'decorators' => array('ViewHelper')
)
);
}
}