blob: 82aa0078d98cdffbe3f38cf628c8c1321f167493 (
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
36
37
38
39
40
41
42
43
|
<?php
/**
* @var Studiengaenge_InformationenController $controller
* @var Fach $studycourse
*/
?>
<td colspan="3">
<table class="default">
<colgroup>
<col style="width: 70%">
<col style="width: 29%">
<col style="width: 1%">
</colgroup>
<? foreach ($studycourse->degrees as $key => $deg) : ?>
<tbody>
<tr>
<td><?= htmlReady($deg->name) ?></td>
<td>
<?= UserStudyCourse::countBySql('fach_id = :fach_id AND abschluss_id = :abschluss_id',
[':fach_id' => $studycourse->fach_id, ':abschluss_id' => $deg->abschluss_id]) ?>
</td>
<td class="actions">
<?= $action = ActionMenu::get()
->setContext($deg->name)
->addLink($controller->messagehelperURL(
['fach_id' => $studycourse->fach_id, 'abschluss_id' => $deg->abschluss_id]),
_('Nachricht an Studierende schreiben'),
Icon::create(
'mail',
Icon::ROLE_CLICKABLE,
['title' => sprintf(
_('Nachricht an alle Studierende mit dem Studiengang %s mit dem Abschluss %s'),
$studycourse->name, $deg->name)
]),
['data-dialog' => ''])
->render()
?>
</td>
</tr>
</tbody>
<? endforeach ?>
</table>
</td>
|