aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/room_requests/request_select_properties.php
blob: de45b117bc0623f05dabb48216d8b7ac95900bbe (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<? if (empty($embedded)) : ?>
    <?= $this->render_partial(
        'course/room_requests/_request_form_header',
        [
            'action'     => $this->controller->link_for('course/room_requests/request_select_properties/' . $request_id),
            'request_id' => $request_id
        ]
    ) ?>
    <?= $this->render_partial(
        'course/room_requests/_request_edit_header',
        ['request' => $request]
    ) ?>
    <?= $this->render_partial(
        'course/room_requests/request_start',
        ['embedded' => true]
    ) ?>
<? endif ?>

<? if ($available_properties) : ?>
        <? foreach ($available_properties as $property) : ?>
            <?= $property->toHtmlInput(
                $selected_properties[$property->name] ?? '',
                'selected_properties[' . htmlReady($property->name) . ']',
                true,
                false
            ) ?>
        <? endforeach ?>
<? endif ?>

<label>
    <?= _('Rüstzeit (in Minuten)') ?>
    <input type="number" name="preparation_time"
           value="<?= htmlReady($preparation_time) ?>"
           min="0" max="<?= htmlReady($max_preparation_time) ?>">
</label>

<label>
    <input type="checkbox" name="reply_lecturers" value="1"
        <?= $reply_lecturers
            ? 'checked="checked"'
            : ''
        ?>>
    <?= _('Benachrichtigung bei Ablehnung der Raumanfrage auch an alle Lehrenden der Veranstaltung senden') ?>
</label>


    <label>
        <?= _('Nachricht an die Raumvergabe') ?>
    <textarea name="comment" cols="58" rows="4"
              placeholder="<?= _('Weitere Wünsche oder Bemerkungen zur angefragten Raumbelegung') ?>"><?= htmlReady($comment) ?></textarea>
    </label>

<? if (empty($embedded)) : ?>
    </div>
    </section>
    <?= $this->render_partial(
        'course/room_requests/_request_form_footer',
        [
            'room_search_button'       => true,
            'save_buttons'             => true,
            'room_select_button'       => false,
            'select_properties_button' => false
        ]
    ) ?>
<? endif ?>