aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/booking/delete.php
blob: 718f279d990ddf6e2f65ca2baebf12a077f4a9ed (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
<? if ($show_question): ?>
    <form class="default" method="post" action="<?= $controller->link_for('resources/booking/delete/' . $booking->id) ?>"
          data-dialog="reload-on-close">
        <?= CSRFProtection::tokenTag() ?>
        <?= MessageBox::warning(
            _('Soll die folgende Buchung wirklich gelöscht werden?')
        ) ?>
        <? if ($show_details): ?>
            <?= $this->render_partial(
                'resources/booking/index',
                [
                    'booking' => $booking,
                    'hide_buttons' => true
                ]
            ) ?>
        <? endif ?>
        <div data-dialog-button>
            <?= \Studip\LinkButton::create(
                _('Zurück'),
                $controller->url_for('resources/booking/edit/' . $booking->id),
                [
                    'data-dialog' => '1'
                ]
            ) ?>
            <?= \Studip\Button::create(
                _('Löschen'),
                'confirm'
            ) ?>
        </div>
    </form>
<? endif ?>