2014-10-29 15:40:34 +01:00
|
|
|
<?php
|
2015-02-04 10:46:36 +01:00
|
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2014-10-29 15:40:34 +01:00
|
|
|
|
2014-11-14 11:17:22 +01:00
|
|
|
namespace Icinga\Module\Monitoring\Forms\Setup;
|
2014-10-29 15:40:34 +01:00
|
|
|
|
|
|
|
use Icinga\Web\Form;
|
|
|
|
|
|
|
|
class WelcomePage extends Form
|
|
|
|
{
|
|
|
|
public function init()
|
|
|
|
{
|
|
|
|
$this->setName('setup_monitoring_welcome');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function createElements(array $formData)
|
|
|
|
{
|
|
|
|
$this->addElement(
|
2014-11-14 10:15:11 +01:00
|
|
|
'note',
|
|
|
|
'welcome',
|
|
|
|
array(
|
2015-01-19 13:47:01 +01:00
|
|
|
'value' => $this->translate('Welcome to the configuration of the monitoring module for Icinga Web 2!'),
|
2014-11-14 10:15:11 +01:00
|
|
|
'decorators' => array(
|
|
|
|
'ViewHelper',
|
|
|
|
array('HtmlTag', array('tag' => 'h2'))
|
2014-10-29 15:40:34 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->addElement(
|
2014-11-14 10:15:11 +01:00
|
|
|
'note',
|
|
|
|
'core_hint',
|
|
|
|
array(
|
2015-01-19 13:47:01 +01:00
|
|
|
'value' => $this->translate('This is the core module for Icinga Web 2.')
|
2014-10-29 15:40:34 +01:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->addElement(
|
2014-11-14 10:15:11 +01:00
|
|
|
'note',
|
|
|
|
'description',
|
|
|
|
array(
|
2015-01-19 13:47:01 +01:00
|
|
|
'value' => $this->translate(
|
2014-11-14 10:15:11 +01:00
|
|
|
'It offers various status and reporting views with powerful filter capabilities that allow'
|
|
|
|
. ' you to keep track of the most important events in your monitoring environment.'
|
2014-10-29 15:40:34 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->addDisplayGroup(
|
|
|
|
array('core_hint', 'description'),
|
|
|
|
'info',
|
|
|
|
array(
|
|
|
|
'decorators' => array(
|
|
|
|
'FormElements',
|
|
|
|
array('HtmlTag', array('tag' => 'div', 'class' => 'info'))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|