aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/members/add_tutor.php
blob: 36cda6f4aabfdb7312d878c985cabf5321e2b347 (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
<h1><?=sprintf(_('%s hinzufügen'), htmlReady($decoratedStatusGroups['tutor']))?></h1>

<form action="<?=$controller->url_for('course/members/set')?>" method="post">
    <?= CSRFProtection::tokenTag() ?>
    <input type="hidden" name="studipticket" value="<?=$studipticket?>">
    <table class="default">
        <thead>
            <tr>
                <th colspan="2">
                    <?=sprintf(_('%s suchen'), htmlReady($decoratedStatusGroups['tutor']))?>
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <?= QuickSearch::get('new_tutor', $search)
                        ->withButton(['reset_button_name' => 'reset_tutor',
                            'search_button_name' => 'search_tutor'])
                        ->render(); ?>
                    <input type="hidden" name="seminar_id" value="<?= $course_id ?>">
                </td>
                <td>
                <?= Studip\Button::createAccept(
                    _('Eintragen'),
                    'add_tutor',
                    ['title' => sprintf(_('als %s eintragen'), $decoratedStatusGroups['tutor'])]
                ) ?>
                <?= Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('course/members/index')) ?>
                </td>
            </tr>
        </tbody>
    </table>
</form>