blob: 7e089af3373010ad8ddb4fd041cfc05a068174d6 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
<? if ($requests): ?>
<form class="default" method="post"
action="<?= $controller->link_for('room_request/assign') ?>">
<table class="default sortable-table request-list" data-sortlist="[[8, 0]]">
<caption>
<? if ($request_status == 'closed') : ?>
<?= sprintf(
ngettext(
'Anfragenliste (%d bearbeitete Anfrage)',
'Anfragenliste (%d bearbeitete Anfragen)',
$count_requests
),
$count_requests
) ?>
<? elseif ($request_status == 'denied') : ?>
<?= sprintf(
ngettext(
'Anfragenliste (%d abgelehnte Anfrage)',
'Anfragenliste (%d abgelehnte Anfragen)',
$count_requests
),
$count_requests
) ?>
<? else : ?>
<?= sprintf(
ngettext(
'Anfragenliste (%d Anfrage)',
'Anfragenliste (%d Anfragen)',
$count_requests
),
$count_requests
) ?>
<? endif ?>
</caption>
<thead>
<tr>
<th data-sort="htmldata">
<?= Icon::create('radiobutton-checked')->asImg(
[
'title' => _('Markierung')
]
) ?>
</th>
<th data-sort="text"><?= _('Nr.') ?></th>
<th data-sort="text"><?= _('Name') ?></th>
<th data-sort="text"><?= _('Lehrende Person(en)') ?></th>
<th data-sort="text"><?= _('Raum') ?></th>
<th data-sort="text"><?= _('Plätze') ?></th>
<th data-sort="text"><?= _('Anfragende Person') ?></th>
<th data-sort="htmldata"><?= _('Art') ?></th>
<th data-sort="htmldata"><?= _('Dringlichkeit') ?></th>
<th data-sort="num"><?= _('letzte Änderung') ?></th>
<th class="actions"><?= _('Aktionen') ?></th>
</tr>
</thead>
<tbody>
<? foreach ($requests as $request): ?>
<? if ($request->getTimeIntervals()) : ?>
<?= $this->render_partial(
'resources/_common/_request_tr',
['request' => $request]
) ?>
<? endif ?>
<? endforeach ?>
</tbody>
<tfoot>
<tr>
<td colspan="11">
<section style="float: right">
<?= $pagination->asLinks(function ($page) use ($controller) {
return $controller->url_for("resources/room_request/overview/{$page}");
}) ?>
</section>
</td>
</tr>
</tfoot>
</table>
</form>
<? else: ?>
<?= MessageBox::info(_('Es sind keine Anfragen vorhanden!')) ?>
<? endif ?>
|