blob: 752ad9898d974e3cef7d80ebfb7e3406e8b868eb (
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
66
|
<? if (empty($embedded)) : ?>
<?= $this->render_partial(
'course/room_requests/_request_form_header',
[
'action' => $this->controller->link_for('course/room_requests/request_select_room/' . $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]
) ?>
<? if (($category instanceof ResourceCategory) && !$direct_room_requests_only): ?>
<?= $this->render_partial(
'course/room_requests/request_select_properties',
['embedded' => true]
) ?>
<? endif ?>
<? endif ?>
</div>
<div>
<? if ($available_rooms) : ?>
<section class="contentbox">
<header><h1><?= _('Passende Räume') ?></h1></header>
<section class="selectbox">
<fieldset>
<? foreach ($available_rooms as $room): ?>
<div class="flex-row">
<label class="horizontal">
<?= $available_room_icons[$room->id] ?>
<input type="radio" name="selected_room_id"
data-activates="button[type='submit'][name='select_room']"
value="<?= htmlReady($room->id) ?>">
<?= htmlReady(mb_substr($room->name, 0, 50)); ?>
<? if ($room->properties): ?>
<? $property_names = $room->getInfolabelProperties()
->pluck('fullname') ?>
<?= tooltipIcon(implode("\n", $property_names)) ?>
<? endif ?>
</label>
</div>
<? endforeach ?>
</fieldset>
</section>
</section>
<? else : ?>
<?= MessageBox::info(_('Es wurden keine passenden Räume gefunden!')) ?>
<? endif ?>
</div>
</section>
<? if (empty($embedded)) : ?>
<?= $this->render_partial(
'course/room_requests/_request_form_footer',
[
'room_search_button' => true,
'room_select_button' => true,
'save_buttons' => true,
'select_properties_button' => false
]
) ?>
<? endif ?>
|