cerebrate/templates/element/genericElements/IndexTable/Fields/local_tools_status.php

14 lines
376 B
PHP

<?php
$tools = $this->Hash->extract($row, 'local_tools');
$output = [];
foreach ($tools as $tool) {
$output[] = sprintf(
'<span class="text-nowrap"><a href="/localTools/view/%s">%s</a>: %s</span>',
h($tool['id']),
h($tool['name']),
h($tool['status'])
);
}
echo implode('<br />', $output);
?>