aboutsummaryrefslogtreecommitdiff
path: root/app/views/calendar/single/import.php
blob: db1feb3feccc2ced0e70043bd85cc50f31e4748f (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
<?
use Studip\Button, Studip\LinkButton;
?>
<form action="<?= $controller->link_for('calendar/single/import/' . $calendar->getRangeId(), ['atime' => $atime, 'last_view' => $last_view]) ?>" method="post" enctype="multipart/form-data" class="default">
    <input type="hidden" name="studip_ticket" value="<?= get_ticket() ?>">
    <?= CSRFProtection::tokenTag() ?>
    <fieldset>
        <legend>
            <?= sprintf(_('Termine importieren')) ?>
        </legend>

        <label for="event-type">
            <input type="checkbox" name="import_privat" value="1" checked>
            <?= _('Öffentliche Termine als "privat" importieren') ?>
        </label>

        <label class="file-upload">
            <span class="required"><?= _('Datei zum Importieren wählen') ?></span>
            <input required type="file" name="importfile" accept=".ics,.ifb,.iCal,.iFBf">
        </label>
    </fieldset>

    <footer data-dialog-button>
        <?= Button::createAccept(_('Termine importieren'), 'import') ?>
        <?= LinkButton::create(_('Abbrechen'), $controller->url_for('calendar/single/' . $last_view)) ?>
    </footer>
</form>