mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-10 06:23:05 -05:00
AddNodeForm: show next when not completed
This commit is contained in:
parent
0380e46552
commit
9712065a6b
1 changed files with 4 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ class AddNodeForm extends QuickForm
|
|||
|
||||
protected function addNewProcess()
|
||||
{
|
||||
$this->addHtml('<h2>Add a new node</h2>');
|
||||
|
||||
$this->addElement('text', 'name', array(
|
||||
'label' => $this->translate('Name'),
|
||||
'required' => true,
|
||||
|
|
@ -159,6 +161,8 @@ class AddNodeForm extends QuickForm
|
|||
$this->addHostElement();
|
||||
if ($host = $this->getSentValue('host')) {
|
||||
$this->addServicesElement($host);
|
||||
} else {
|
||||
$this->setSubmitLabel($this->translate('Next'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue