summaryrefslogtreecommitdiffstats
path: root/modules/setup/application/views/scripts/form/setup-summary.phtml
blob: 3ad02652effa24113263014ea6a1ea98331ae2a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php

use Icinga\Web\Wizard;

$form->getElement(Wizard::BTN_NEXT)->setAttrib(
    'class',
    $form->getElement(Wizard::BTN_NEXT)->getAttrib('class') . ' finish'
);

?>
<p><?= sprintf(
  $this->translate(
    'You\'ve configured %1$s successfully. You can review the changes supposed to be made before setting it up.'
    . ' Make sure that everything is correct (Feel free to navigate back to make any corrections!) so'
    . ' that you can start using %1$s right after it has successfully been set up.'
  ),
  $form->getSubjectTitle()
); ?></p>
<div class="summary">
<?php foreach ($form->getSummary() as $pageHtml): ?>
 <?php if ($pageHtml): ?>
  <div class="page">
    <?= $pageHtml; ?>
  </div>
 <?php endif ?>
<?php endforeach ?>
</div>
<form
 id="<?= $this->escape($form->getName()); ?>"
 name="<?= $this->escape($form->getName()); ?>"
 enctype="<?= $this->escape($form->getEncType()); ?>"
 method="<?= $this->escape($form->getMethod()); ?>"
 action="<?= $this->escape($form->getAction()); ?>"
 data-progress-element="<?= Wizard::PROGRESS_ELEMENT; ?>"
 class="summary"
>
  <?= $form->getElement($form->getTokenElementName()); ?>
  <?= $form->getElement($form->getUidElementName()); ?>
  <?= $form->getDisplayGroup('buttons'); ?>
</form>