aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/studygroup/_replace_founder.php
blob: 8947fedd513e58b8d5a7e8bb2fc6efe6027e21b0 (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
<section>
    <?= _('GruppengründerInnen') ?>
</section>

<div class="hgroup">
<? if (is_array($founders) && count($founders) > 0) : ?>
    <ul>
    <? foreach ($founders as $founder) : ?>
        <li><?= htmlReady(get_fullname_from_uname($founder['username'])) ?></li>
    <? endforeach; ?>
    </ul>
<? endif; ?>

<? if (!empty($tutors)) :?>
    <?= Icon::create('arr_2left', Icon::ROLE_SORT)->asInput([
        'title' => _('Als GruppengründerIn eintragen'),
        'class' => 'middle',
        'name'  => 'replace_founder',
    ]) ?>
    <select name="choose_founder">
    <? foreach($tutors as $uid => $tutor) : ?>
        <option value="<?= htmlReady($uid) ?>">
            <?= htmlReady($tutor['fullname']) ?>
        </option>
    <? endforeach ; ?>
    </select>
<? endif; ?>
</div>