Skip to content
Snippets Groups Projects
Commit 39e74e1b authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

re #13

parent 0e9060f7
No related branches found
No related tags found
No related merge requests found
...@@ -53,12 +53,17 @@ ...@@ -53,12 +53,17 @@
) ?> ) ?>
</td> </td>
<td> <td>
<? if ($block->teacher): ?> <? if (count($block->responsibilities) > 0): ?>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $block->teacher->username]) ?>"> <br>
<?= htmlReady($block->teacher->getFullName()) ?> <ul class="narrow list-csv">
</a> <? foreach ($block->responsibilities as $responsibility): ?>
<? else: ?> <li>
&ndash; <a href="<?= URLHelper::getLink($responsibility->getURL(), [], true) ?>">
<?= htmlReady($responsibility->getName()) ?>
</a>
</li>
<? endforeach; ?>
</ul>
<? endif; ?> <? endif; ?>
</td> </td>
<td> <td>
...@@ -66,12 +71,7 @@ ...@@ -66,12 +71,7 @@
</td> </td>
<td class="actions"> <td class="actions">
<?= ActionMenu::get()->addLink( <?= ActionMenu::get()->addLink(
$controller->edit_roomURL($block, $page), $controller->editURL($block, 0, $page),
_('Raum bearbeiten'),
Icon::create('edit'),
['data-dialog' => 'size=auto']
)->addLink(
$controller->noteURL($block, 0, $page),
_('Information bearbeiten'), _('Information bearbeiten'),
Icon::create('edit'), Icon::create('edit'),
['data-dialog' => 'size=auto'] ['data-dialog' => 'size=auto']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment