blob: 035222d2c4bf40d5f64a2d514bfed8ee1155601c (
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
|
<?php
/**
* @var ConsultationSlot $slot
*/
?>
<? if ($slot->isOccupied()): ?>
<span class="consultation-occupied">
<? if ($slot->block->size > 1): ?>
<?= sprintf(
_('%u von %u belegt'),
count($slot->bookings),
$slot->block->size
) ?>
<? elseif ($slot->isOccupied($GLOBALS['user']->id)): ?>
<?= _('Eigene Buchung') ?>
<? else: ?>
<?= _('belegt') ?>
<? endif; ?>
</span>
<? elseif ($slot->isLocked()): ?>
<span class="consultation-slot-not-bookable">
<?= _('nicht buchbar') ?>
</span>
<? else: ?>
<span class="consultation-free">
<? if ($slot->block->size > 1): ?>
<?= sprintf(
_('%u von %u frei'),
$slot->block->size - count($slot->bookings),
$slot->block->size
) ?>
<? else: ?>
<?= _('frei') ?>
<? endif; ?>
</span>
<? endif; ?>
|