blob: 56c7aad846e8e0bca959ad7b778c71cb03342a26 (
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
|
<? if (count($slot->bookings) === 0 || !($slot->block->show_participants || $slot->isOccupied($GLOBALS['user']->id))): ?>
–
<? elseif ($slot->block->show_participants): ?>
<ul class="default">
<? foreach ($slot->bookings as $booking):
if (!$slot->block->show_participants && $booking->user_id !== $GLOBALS['user']->id) continue;
?>
<li>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $booking->user->username]) ?>">
<?= htmlReady($booking->user->getFullName()) ?>
</a>
<? if ($booking->user_id === $GLOBALS['user']->id): ?>
-
<?= _('Mein Grund der Buchung') ?>:
<? if ($booking->reason): ?>
<?= htmlReady($booking->reason) ?>
<? else: ?>
<span class="consultation-no-reason">
<?= _('Kein Grund angegeben') ?>
</span>
<? endif; ?>
<? endif; ?>
</li>
<? endforeach; ?>
</ul>
<? elseif ($slot->isOccupied($GLOBALS['user']->id)): ?>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $GLOBALS['user']->username]) ?>">
<?= htmlReady($GLOBALS['user']->getFullName()) ?>
</a>
<? if (count($slot->bookings) > 1): ?>
(<?= sprintf(_('+%u weitere'), count($slot->bookings) - 1) ?>)
<? endif; ?>
<? endif; ?>
|