mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-02-19 02:34:05 -05:00
28 lines
727 B
PHP
28 lines
727 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Graphite\Forms;
|
|
|
|
use Icinga\Forms\ConfigForm as BaseConfigForm;
|
|
|
|
class ConfigForm extends BaseConfigForm
|
|
{
|
|
public function init()
|
|
{
|
|
$this->setName('form_config_graphite');
|
|
$this->setSubmitLabel($this->translate('Save Changes'));
|
|
}
|
|
|
|
public function createElements(array $formData)
|
|
{
|
|
$this->addElement(
|
|
'text',
|
|
'graphite_web_url',
|
|
array(
|
|
'required' => true,
|
|
'label' => $this->translate('Graphite Web URL'),
|
|
'description' => $this->translate('URL to your Graphite Web'),
|
|
'validators' => ['UrlValidator']
|
|
)
|
|
);
|
|
}
|
|
}
|