blob: 1ba7ca1c3d3b9d7e5e51ff7f90d4584623285f01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?= $controller->jsUrl() ?>
<table class="default collapsable">
<thead>
<tr class="sortable">
<?= $controller->renderSortLink('module/institute/index', _('Einrichtung'), 'name', ['style' => 'width: 75%;']) ?>
<?= $controller->renderSortLink('module/institute/index', _('Module'), 'count_objects', ['style' => 'text-align: center;']) ?>
</tr>
</thead>
<? foreach ($institute as $institut) : ?>
<? if (!$institut->id) continue; ?>
<tbody class="<?= ($institut->count_objects ? '' : 'empty') ?> <?= ($inst_id == $institut->id ? 'not-collapsed' : 'collapsed') ?>">
<tr class="header-row" id="institut_<?= $institut->id ?>">
<td class="toggle-indicator">
<? if ($institut->count_objects) : ?>
<a class="mvv-load-in-new-row"
href="<?= $controller->action_link('details', ['institut_id' => $institut->id]) ?>">
<?= htmlReady($institut->getDisplayName()) ?>
</a>
<? else : ?>
<?= htmlReady($institut->getDisplayName()) ?>
<? endif; ?>
</td>
<td style="text-align: center;" class="dont-hide"><?= $institut->count_objects ?></td>
</tr>
<? if ($institut->id && $inst_id == $institut->id) : ?>
<tr class="loaded-details nohover">
<?= $this->render_partial('module/institute/details',
['institut_id' => $institut->id]
) ?>
</tr>
<? endif; ?>
</tbody>
<? endforeach; ?>
</table>
|