aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/studygroup/details.php
blob: 7fbbc39dd7848a86d2f353013872a797c63d2bdb (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
 * @var Course $studygroup
 * @var array $sidebarActions
 */
 ?>
<article class="studip">
    <header>
        <h1><?= _('Grunddaten') ?></h1>
    </header>
    <section>
        <dl style="margin: 0">
            <dt><?= _('Name der Studiengruppe') ?></dt>
            <dd><?= htmlReady($studygroup->name) ?></dd>
            <? if ((string) $studygroup->Beschreibung): ?>
                <dt><?= _('Beschreibung') ?></dt>
                <dd><?= formatLinks($studygroup->Beschreibung) ?></dd>
            <? endif; ?>

        <? if ((string) $studygroup->beschreibung): ?>
            <dt><?= _('Beschreibung') ?></dt>
            <dd><?= formatLinks($studygroup->beschreibung) ?></dd>
        <? endif; ?>
            <dt><?= _('Moderiert von') ?></dt>
            <dd>
                <ul class="list-csv">
                <? foreach ($studygroup->getMembersWithStatus(['dozent', 'tutor']) as $mod) : ?>
                    <li>
                        <a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $mod->username]) ?>">
                            <?= htmlReady($mod->user->getFullName()) ?>
                        </a>
                    </li>
                <? endforeach ?>
                </ul>
            </dd>
        </dl>
    </section>
</article>

<? if (count($studygroup->tags) > 0) : ?>
<article class="studip">
    <header>
        <h1><?= _('Schlagwörter') ?></h1>
    </header>
    <section>
        <? foreach ($studygroup->tags as $tag) : ?>
            <a href="<?= URLHelper::getLink('dispatch.php/studygroup/browse', ['q' => $tag['name']]) ?>">
                <?= htmlReady('#'.$tag['name']) ?>
            </a>
        <? endforeach ?>
    </section>
</article>
<? endif ?>

<div class="hidden-medium-up">
<? foreach ($sidebarActions as $action) : ?>
    <?= Studip\LinkButton::create($action->label, $action->url) ?>
<? endforeach ?>
</div>