inspect/type: render a list, provide links

This commit is contained in:
Thomas Gelf 2015-11-26 18:53:08 +01:00
parent 66b1daa1ba
commit 3c5118ca0a
1 changed files with 13 additions and 5 deletions

View File

@ -4,9 +4,17 @@
</div>
<div class="content">
<pre>
<?= $this->escape(print_r($this->type, 1)) ?>
<?= $this->escape(print_r($this->objects, 1)) ?>
</pre>
<table class="common-table table-row-selectable" data-base-target="_next">
<thead><tr><th><?= $this->translate('Object name') ?></th></tr></thead>
<tbody>
<?php foreach ($this->objects as $object): ?>
<tr><td><?= $this->qlink(
str_replace('!', ': ', $object),
'director/inspect/object',
array('type' => $this->type->name, 'plural' => $this->type->plural_name, 'name' => $object)
) ?></td></tr>
<?php endforeach ?>
</tbody>
</table>
<pre><?= $this->escape(print_r($this->type, 1)) ?></pre>
</div>