Skip to content
Snippets Groups Projects
Commit 42c5200e authored by Robert Lange's avatar Robert Lange Committed by Dorian Merz
Browse files

refs #17434 [finc] handle missing label in record tab description

* if there is no key / label:
** use full width
** no table head
** no colon
parent 569130f7
Branches
Tags
No related merge requests found
......@@ -13,7 +13,15 @@ $mainFields = $formatter->getData($driver, $formatter->getDefaults('description'
<caption class="sr-only"><?=$this->transEsc('Description')?></caption>
<?php if (!empty($mainFields)): ?>
<?php foreach ($mainFields as $current): ?>
<tr><th><?=$this->transEsc($current['label'])?>:</th><td data-title="<?= $this->transEsc($current['label']) ?>:"><?=$current['value']?></td></tr>
<tr>
<?php if (!empty($current['label'])): ?>
<th><?=$this->transEsc($current['label'])?>:</th>
<td data-title="<?= $this->transEsc($current['label']) ?>:">
<?php else: ?>
<td colspan="2">
<?php endif; ?>
<?=$current['value']?></td>
</tr>
<?php endforeach; ?>
<?php else: ?>
<tr><td><?=$this->transEsc('no_description')?></td></tr>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment