parent
a960f2cb4c
commit
c395dbd813
|
@ -3,11 +3,18 @@
|
|||
use Icinga\Web\Wizard;
|
||||
|
||||
?>
|
||||
<form id="<?= $form->getName(); ?>" name="<?= $form->getName(); ?>" enctype="<?= $form->getEncType(); ?>" method="<?= $form->getMethod(); ?>" action="<?= $form->getAction(); ?>">
|
||||
<form
|
||||
id="<?= $form->getName(); ?>"
|
||||
name="<?= $form->getName(); ?>"
|
||||
enctype="<?= $form->getEncType(); ?>"
|
||||
method="<?= $form->getMethod(); ?>"
|
||||
action="<?= $form->getAction(); ?>"
|
||||
data-progress-element="<?= Wizard::PROGRESS_ELEMENT; ?>"
|
||||
>
|
||||
<h2><?= $this->translate('Modules', 'setup.page.title'); ?></h2>
|
||||
<p><?= $this->translate('The following modules were found in your Icinga Web 2 installation. To enable and configure a module, just tick it and click "Next".'); ?></p>
|
||||
<?php foreach ($form->getElements() as $element): ?>
|
||||
<?php if (! in_array($element->getName(), array(Wizard::BTN_PREV, Wizard::BTN_NEXT, $form->getTokenElementName(), $form->getUidElementName()))): ?>
|
||||
<?php if (! in_array($element->getName(), array(Wizard::BTN_PREV, Wizard::BTN_NEXT, Wizard::PROGRESS_ELEMENT, $form->getTokenElementName(), $form->getUidElementName()))): ?>
|
||||
<div class="module">
|
||||
<h3><label for="<?= $element->getId(); ?>"><strong><?= $element->getLabel(); ?></strong></label></h3>
|
||||
<label for="<?= $element->getId(); ?>"><?= $element->getDescription(); ?></label>
|
||||
|
@ -20,5 +27,6 @@ use Icinga\Web\Wizard;
|
|||
<div class="buttons">
|
||||
<?= $form->getElement(Wizard::BTN_PREV); ?>
|
||||
<?= $form->getElement(Wizard::BTN_NEXT); ?>
|
||||
<?= $form->getElement(Wizard::PROGRESS_ELEMENT); ?>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -9,7 +9,14 @@ use Icinga\Web\Wizard;
|
|||
<h1><?= ucwords($moduleName) . ' ' . $this->translate('Module'); ?></h1>
|
||||
<?= $wizard->getRequirements(); ?>
|
||||
<?php endforeach ?>
|
||||
<form id="<?= $form->getName(); ?>" name="<?= $form->getName(); ?>" enctype="<?= $form->getEncType(); ?>" method="<?= $form->getMethod(); ?>" action="<?= $form->getAction(); ?>">
|
||||
<form
|
||||
id="<?= $form->getName(); ?>"
|
||||
name="<?= $form->getName(); ?>"
|
||||
enctype="<?= $form->getEncType(); ?>"
|
||||
method="<?= $form->getMethod(); ?>"
|
||||
action="<?= $form->getAction(); ?>"
|
||||
data-progress-element="<?= Wizard::PROGRESS_ELEMENT; ?>"
|
||||
>
|
||||
<?= $form->getElement($form->getTokenElementName()); ?>
|
||||
<?= $form->getElement($form->getUidElementName()); ?>
|
||||
<div class="buttons">
|
||||
|
@ -21,6 +28,7 @@ use Icinga\Web\Wizard;
|
|||
}
|
||||
echo $btn;
|
||||
?>
|
||||
<?= $form->getElement(Wizard::PROGRESS_ELEMENT); ?>
|
||||
<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(
|
||||
|
|
|
@ -20,11 +20,20 @@ use Icinga\Web\Wizard;
|
|||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<form id="<?= $form->getName(); ?>" name="<?= $form->getName(); ?>" enctype="<?= $form->getEncType(); ?>" method="<?= $form->getMethod(); ?>" action="<?= $form->getAction(); ?>" class="summary">
|
||||
<form
|
||||
id="<?= $form->getName(); ?>"
|
||||
name="<?= $form->getName(); ?>"
|
||||
enctype="<?= $form->getEncType(); ?>"
|
||||
method="<?= $form->getMethod(); ?>"
|
||||
action="<?= $form->getAction(); ?>"
|
||||
data-progress-element="<?= Wizard::PROGRESS_ELEMENT; ?>"
|
||||
class="summary"
|
||||
>
|
||||
<?= $form->getElement($form->getTokenElementName()); ?>
|
||||
<?= $form->getElement($form->getUidElementName()); ?>
|
||||
<div class="buttons">
|
||||
<?= $form->getElement(Wizard::BTN_PREV); ?>
|
||||
<?= $form->getElement(Wizard::BTN_NEXT)->setAttrib('class', 'finish'); ?>
|
||||
<?= $form->getElement(Wizard::PROGRESS_ELEMENT); ?>
|
||||
</div>
|
||||
</form>
|
Loading…
Reference in New Issue