detail-content: Use widget CustomVarTable to render custom vars

This commit is contained in:
Johannes Meyer 2021-12-02 15:16:39 +01:00
parent 6085b02b16
commit 83e8b3b8e8

View File

@ -45,12 +45,9 @@
<?php if (! empty($object->customvars)): ?> <?php if (! empty($object->customvars)): ?>
<h2><?= $this->translate('Custom Variables') ?></h2> <h2><?= $this->translate('Custom Variables') ?></h2>
<table id="<?= $object->type ?>-customvars" class="name-value-table collapsible" data-visible-height="200"> <div id="<?= $object->type ?>-customvars" data-visible-height="200" class="collapsible">
<tbody> <?= (new \Icinga\Module\Monitoring\Web\Widget\CustomVarTable($object->customvarsWithOriginalNames, $object)) ?>
<?= $this->render('show/components/customvars.phtml') ?> </div>
</tbody>
</table>
<?php endif ?> <?php endif ?>
<?= $this->render('show/components/flags.phtml') ?> <?= $this->render('show/components/flags.phtml') ?>
</div> </div>