aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/members/additional.php
blob: d1af456c521b38f1741437e33de99ac37360a1e0 (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
<? if (!empty($aux['rows'])) : ?>
    <form method="post" action="<?= $controller->url_for('course/members/store_additional')?>">
        <?= CSRFProtection::tokenTag()?>
        <table class="default hide_datafield_title">
            <caption><?= _('Zusatzangaben bearbeiten') ?></caption>
            <thead>
            <tr>
                <? foreach ($aux['head'] as $head): ?>
                    <th><?= htmlReady($head) ?></th>
                <? endforeach; ?>
            </tr>
            </thead>
            <tbody>
            <? foreach ($aux['rows'] as $entry): ?>
                <tr>
                    <? foreach ($aux['head'] as $key => $value): ?>
                        <td><?= $key === 'name' ? htmlReady($entry[$key]) : $entry[$key] ?></td>
                    <? endforeach; ?>
                </tr>
            <? endforeach; ?>
            </tbody>
            <tfoot>
            <tr>
                <td colspan="<?= count($aux['head']) ?>">
                    <?= \Studip\Button::create(_('Speichern'), 'save') ?>
                </td>
            </tr>
            </tfoot>

        </table>
    </form>
<? else : ?>
    <?= MessageBox::info(_('Keine Zusatzangaben oder Teilnehmende vorhanden.')) ?>
<? endif ?>