mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Setup-Wizard-Viewscript: Fix that progress bar is not shown correctly
fixes #13735
This commit is contained in:
parent
116672d911
commit
9578c9f489
@ -4,7 +4,7 @@ use Icinga\Web\Notification;
|
|||||||
|
|
||||||
$pages = $wizard->getPages();
|
$pages = $wizard->getPages();
|
||||||
$finished = isset($success);
|
$finished = isset($success);
|
||||||
$configPages = array_slice($pages, 3, count($pages) - 1, true);
|
$configPages = array_slice($pages, 3, count($pages) - 4, true);
|
||||||
$currentPos = array_search($wizard->getCurrentPage(), $pages, true);
|
$currentPos = array_search($wizard->getCurrentPage(), $pages, true);
|
||||||
list($configPagesLeft, $configPagesRight) = array_chunk($configPages, count($configPages) / 2, true);
|
list($configPagesLeft, $configPagesRight) = array_chunk($configPages, count($configPages) / 2, true);
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ if ($notifications->hasMessages()) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="step" style="width: 10%;">
|
<div class="step" style="width: 10%;">
|
||||||
<h1><?= $this->translate('Finish', 'setup.progress'); ?></h1>
|
<h1><?= $this->translate('Finish', 'setup.progress'); ?></h1>
|
||||||
<?php $stateClass = $finished ? ' active' : ''; ?>
|
<?php $stateClass = $finished ? ' complete' : ($pages[$currentPos] === end($pages) ? ' active' : ''); ?>
|
||||||
<table><tbody><tr>
|
<table><tbody><tr>
|
||||||
<td class="left"><div class="line left<?= $stateClass; ?>"></div></td>
|
<td class="left"><div class="line left<?= $stateClass; ?>"></div></td>
|
||||||
<td class="middle"><div class="bubble<?= $stateClass; ?>"></div></td>
|
<td class="middle"><div class="bubble<?= $stateClass; ?>"></div></td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user