Adjust button labels only in WebSetup::addButtons(), not in view scripts
refs #7163
This commit is contained in:
parent
2ecb862fc3
commit
a54c81b2a7
|
@ -218,7 +218,7 @@ $loggingLevel = $summary['setup_general_config']['logging_level'];
|
|||
<?= $form->getElement($form->getUidElementName()); ?>
|
||||
<div class="buttons">
|
||||
<?= $form->getElement(Wizard::BTN_PREV); ?>
|
||||
<?= $form->getElement(Wizard::BTN_NEXT)->setLabel(t('Install Icinga Web 2'))->setAttrib('class', 'install'); ?>
|
||||
<?= $form->getElement(Wizard::BTN_NEXT)->setAttrib('class', 'install'); ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
|
@ -200,6 +200,22 @@ class WebSetup extends Wizard implements SetupWizard
|
|||
return $newPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Wizard::addButtons()
|
||||
*/
|
||||
protected function addButtons(Form $page)
|
||||
{
|
||||
parent::addButtons($page);
|
||||
|
||||
$pages = $this->getPages();
|
||||
$index = array_search($page, $pages, true);
|
||||
if ($index === 0) {
|
||||
$page->getElement(static::BTN_NEXT)->setLabel(t('Start', 'setup.welcome.btn.next'));
|
||||
} elseif ($index === count($pages) - 1) {
|
||||
$page->getElement(static::BTN_NEXT)->setLabel(t('Install Icinga Web 2', 'setup.summary.btn.finish'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see SetupWizard::getInstaller()
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue