aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/search/rooms.php
blob: 0f8307bf6829feef7786ffec28427b0908dbc687 (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
<? if (is_array($rooms) && count($rooms)): ?>
    <? foreach ($rooms as $room): ?>
        <?= $this->render_partial(
            'resources/_common/_room_search_result.php',
            [
                'room' => $room,
                'show_user_actions' => $room->userHasPermission(
                    $current_user,
                    'user'
                ),
                'show_autor_actions' => $room->userHasPermission(
                    $current_user,
                    'autor'
                ),
                'show_tutor_actions' => $room->userHasPermission(
                    $current_user,
                    'tutor'
                ),
                'show_admin_actions' => $room->userHasPermission(
                    $current_user,
                    'admin'
                ),
                'cliboard_widget_id' => $clipboard_widget_id,
                'booking_plan_action_params' => $booking_plan_action_params
            ]
        ) ?>
    <? endforeach ?>
<? else: ?>
    <? if ($form_submitted && !$has_errors): ?>
        <?= MessageBox::info(
            _('Es wurden keine Räume gefunden, die zu den angegebenen Suchkriterien passen!')
        ) ?>
    <? endif ?>
    <? if (!$form_submitted): ?>
        <?= MessageBox::info(
            _('Wählen Sie Suchkriterien oder ein Element im Ressourcenbaum, um Räume zu finden.')
        ) ?>
    <? endif ?>
<? endif ?>