aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/courses/export_csv.php
blob: b2933404eb2f4cb7debad0ff698b2266e67ff186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * @var Admin_CoursesController $controller
 * @var array $fields
 * @var array $selection
 */
?>
<form action="<?= $controller->link_for('admin/courses/export_csv') ?>" method="get" class="default">
    <fieldset>
    <? foreach ($fields as $index => $name) : ?>
        <? if ($index !== 'contents') : ?>
            <label>
                <input type="checkbox" name="fields[]" value="<?= htmlReady($index) ?>"
                       <?= in_array($index, $selection) ? ' checked' : "" ?>>
                <?= htmlReady($name) ?>
            </label>
        <? endif ?>
    <? endforeach ?>
    </fieldset>
    <div data-dialog-button>
        <?= Studip\Button::create(_('Auswahl exportieren')) ?>
    </div>
</form>