KickstartForm: add hint for those re-running...

...Kickstart

fixes #1116
This commit is contained in:
Thomas Gelf 2017-08-25 14:41:28 +02:00
parent 1a08b90c7a
commit 5296f33bcc

View File

@ -79,15 +79,28 @@ class KickstartForm extends DirectorForm
$this->addResourceDisplayGroup(); $this->addResourceDisplayGroup();
$this->addHtmlHint( if ($this->getDb()->hasDeploymentEndpoint()) {
$this->translate( $this->addHtmlHint(
'Your installation of Icinga Director has not yet been prepared for' $this->translate(
. ' deployments. This kickstart wizard will assist you with setting' 'Your configuration looks good. Still, you might want to re-run'
. ' up the connection to your Icinga 2 server.' . ' this kickstart wizard to (re-)import modified or new manually'
), . ' defined Command definitions or to get fresh new ITL commands'
array('name' => 'HINT_kickstart') . ' after an Icinga 2 Core upgrade.'
),
array('name' => 'HINT_kickstart')
// http://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-apilistener // http://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-apilistener
); );
} else {
$this->addHtmlHint(
$this->translate(
'Your installation of Icinga Director has not yet been prepared for'
. ' deployments. This kickstart wizard will assist you with setting'
. ' up the connection to your Icinga 2 server.'
),
array('name' => 'HINT_kickstart')
// http://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-apilistener
);
}
$this->addElement('text', 'endpoint', array( $this->addElement('text', 'endpoint', array(
'label' => $this->translate('Endpoint Name'), 'label' => $this->translate('Endpoint Name'),