aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/members/index.php
blob: 4c2e2ac08d390a4eb44496aca1e8f82147c9f3d0 (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
<?php
/**
 * @var array $dozenten
 * @var array $tutoren
 * @var array $autoren
 * @var array $users
 * @var array $accepted
 * @var array $awaiting
 * @var Course $course
 * @var bool $is_tutor
 * @var bool $semAdmissionEnabled
 */
?>
<? if (count($dozenten) > 0) : ?>
    <?= $this->render_partial('course/members/dozent_list') ?>
<? endif ?>

<? if (count($tutoren) > 0) : ?>
    <?= $this->render_partial('course/members/tutor_list') ?>
<? endif ?>

<? if ($is_tutor && $semAdmissionEnabled) : ?>
    <p style="float: right">
        <? //TODO?>
        <strong><?= _('Teilnahmebeschränkte Veranstaltung') ?></strong> -
        <?= _('max. Teilnehmendenzahl') ?> <?= $course->admission_turnout ?>,
        <?= _('davon belegt') ?>: <?= (count($autoren) + count($users) + count($accepted)) ?>
    </p>
    <div class="clear"></div>
<? endif ?>

<? if (count($autoren) > 0) : ?>
    <?= $this->render_partial('course/members/autor_list') ?>
<? endif ?>

<? if (count($users) > 0) : ?>
    <?= $this->render_partial('course/members/user_list') ?>
<? endif ?>

<? if ($is_tutor && count($accepted) > 0) : ?>
    <?= $this->render_partial('course/members/accepted_list') ?>
<? endif ?>

<? if ($is_tutor && count($awaiting) > 0) : ?>
    <?= $this->render_partial('course/members/awaiting_list') ?>
<? endif ?>