summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Setup/WelcomePage.php
blob: 9f97c7d282a13bdd1b2ec65af94d493a85d8f85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php

/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */

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')
            )
        );
    }
}