aboutsummaryrefslogtreecommitdiff
path: root/app/views/fachabschluss/abschluesse/details.php
blob: b475f40fc346f757f5cb3995b39584ee7f5ea858 (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
<td colspan="4">
    <table class="default">
        <colgroup>
            <col>
            <col style="width: 1%;">
        </colgroup>
        <? foreach ($abschluss->getFaecher() as $fach) : ?>
            <? if (count($perm_institutes) === 0
                || count(array_intersect($perm_institutes, $fach->getFachbereiche()->pluck('institut_id')))) : ?>
                <tr>
                    <td>
                        <?= htmlReady($fach->name) ?>
                    </td>
                    <td class="actions">
                        <? if (MvvPerm::havePermWrite($fach)) : ?>
                            <a data-dialog href="<?= $controller->action_link('fach/' . $fach->id) ?>">
                                <?= Icon::create('edit', 'clickable', ['title' => _('Fach bearbeiten')])->asSvg(); ?>
                            </a>
                        <? endif; ?>
                    </td>
                </tr>
            <? endif; ?>
        <? endforeach; ?>
    </table>
</td>