aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/resource/export_bookings.php
blob: 641838197ee5c5984234bf08a9c03afcd5862448 (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
35
36
37
38
<? if ($resource): ?>
    <form class="default" method="post" action="<?= $controller->link_for('resources/export/bookings')?>">
        <input type="hidden" name="from" value="<?= $controller->export_bookings($resource->id)?>">
        <?= CSRFProtection::tokenTag() ?>
        <? if ($resource instanceof Room): ?>
            <input type="hidden" name="selected_rooms[]"
                   value="<?= htmlReady($resource->id)?>">
        <? else: ?>
            <input type="hidden" name="selected_resources[]"
                   value="<?= htmlReady($resource->id)?>">
        <? endif ?>
        <article class="widget">
            <header><?= _('Zeitbereich auswählen') ?></header>
            <section>
                <label>
                    <?= _('Startzeitpunkt') ?>
                    <input type="text" class="datepicker" name="begin_date"
                           value="<?= $begin->format('d.m.Y') ?>">
                    <input type="time" name="begin_time"
                           value="<?= $begin->format('H:i')?>">
                </label>
                <label>
                    <?= _('Endzeitpunkt') ?>
                    <input type="text" class="datepicker" name="end_date"
                           value="<?= $end->format('d.m.Y') ?>">
                    <input type="time" name="end_time"
                           value="<?= $end->format('H:i')?>">
                </label>
            </section>
        </article>
        <div data-dialog-button>
            <?= \Studip\Button::create(
                _('Exportieren'),
                'export'
            ) ?>
        </div>
    </form>
<? endif ?>