2014-09-29 12:26:54 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Icinga\Web\Wizard;
|
|
|
|
|
2015-08-28 10:49:26 +02:00
|
|
|
if (! $form->getWizard()->getRequirements()->fulfilled()) {
|
|
|
|
$form->getElement(Wizard::BTN_NEXT)->setAttrib('disabled', 1);
|
|
|
|
}
|
|
|
|
|
2014-09-29 12:26:54 +02:00
|
|
|
?>
|
2015-03-10 10:56:05 +01:00
|
|
|
<h1>Icinga Web 2</h1>
|
|
|
|
<?= $form->getWizard()->getRequirements(true); ?>
|
|
|
|
<?php foreach ($form->getWizard()->getPage('setup_modules')->getModuleWizards() as $moduleName => $wizard): ?>
|
|
|
|
<h1><?= ucwords($moduleName) . ' ' . $this->translate('Module'); ?></h1>
|
|
|
|
<?= $wizard->getRequirements(); ?>
|
|
|
|
<?php endforeach ?>
|
2015-08-21 10:35:10 +02:00
|
|
|
<form
|
|
|
|
id="<?= $form->getName(); ?>"
|
|
|
|
name="<?= $form->getName(); ?>"
|
|
|
|
enctype="<?= $form->getEncType(); ?>"
|
|
|
|
method="<?= $form->getMethod(); ?>"
|
|
|
|
action="<?= $form->getAction(); ?>"
|
|
|
|
data-progress-element="<?= Wizard::PROGRESS_ELEMENT; ?>"
|
|
|
|
>
|
2014-09-29 12:26:54 +02:00
|
|
|
<?= $form->getElement($form->getTokenElementName()); ?>
|
|
|
|
<?= $form->getElement($form->getUidElementName()); ?>
|
2015-03-10 09:31:57 +01:00
|
|
|
<div class="buttons">
|
2014-10-06 11:07:21 +02:00
|
|
|
<?php
|
2015-08-28 10:49:26 +02:00
|
|
|
$double = clone $form->getElement(Wizard::BTN_NEXT);
|
|
|
|
echo $double->setAttrib('class', 'double');
|
2014-10-06 11:07:21 +02:00
|
|
|
?>
|
2015-08-28 10:49:26 +02:00
|
|
|
<?= $form->getElement(Wizard::BTN_PREV); ?>
|
|
|
|
<?= $form->getElement(Wizard::BTN_NEXT); ?>
|
2015-08-21 10:35:10 +02:00
|
|
|
<?= $form->getElement(Wizard::PROGRESS_ELEMENT); ?>
|
2015-03-10 10:56:05 +01:00
|
|
|
<div class="requirements-refresh">
|
|
|
|
<?php $title = $this->translate('You may also need to restart the web-server for the changes to take effect!'); ?>
|
|
|
|
<?= $this->qlink(
|
|
|
|
$this->translate('Refresh'),
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
array(
|
2015-10-01 13:22:44 +02:00
|
|
|
'class' => 'button-link',
|
2015-03-10 10:56:05 +01:00
|
|
|
'title' => $title,
|
|
|
|
'aria-label' => sprintf($this->translate('Refresh the page; %s'), $title)
|
|
|
|
)
|
|
|
|
); ?>
|
|
|
|
</div>
|
2014-10-06 11:07:21 +02:00
|
|
|
</div>
|
2015-03-10 09:31:57 +01:00
|
|
|
</form>
|