blob: 397f0bfb7897c273fb7030a666fee519fecb5f38 (
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 (isset($em['day_events']) && count($em['day_events']) > 0) : ?>
<td class="<?= $class_cell ?>" style="padding: 0px;" <?= (($em['max_cols'] > 0) ? ' colspan="' . ($em['max_cols']) . '"' : '') ?>>
<table style="width: 100%; border-spacing: 0;">
<? $i = 0; ?>
<? foreach ($em['day_events'] as $day_event) : ?>
<tr>
<? if ($day_event->getPermission() == Event::PERMISSION_CONFIDENTIAL) : ?>
<td class="calendar-category<?= $day_event->getCategory() ?>">
<?= htmlReady($day_event->getTitle()) ?>
</td>
<? else : ?>
<td data-tooltip onclick="STUDIP.Dialog.fromElement(jQuery(this).children('a').first(), {size: 'auto'}); return false;" class="calendar-category<?= $day_event->getCategory() ?>">
<?= $this->render_partial('calendar/single/_tooltip', ['event' => $calendar->events[$em['day_map'][$i]]]) ?>
<a style="color:#fff;" data-dialog="size=auto" href="<?= $controller->url_for('calendar/single/edit/' . $calendar->getRangeId() . '/' . $day_event->event_id, ['isdayevent' => '1']) ?>"><?= htmlReady($day_event->getTitle()) ?></a>
</td>
<? endif; ?>
</tr>
<? $i++; ?>
<? endforeach ?>
</table>
</td>
<td class="calendar-day-edit <?= $class_cell ?>" onclick="STUDIP.Dialog.fromElement(jQuery(this).children('a').first(), {size: 'auto'}); return false;">
<? if ($calendar->havePermission(Calendar::PERMISSION_WRITABLE)) : ?>
<a data-dialog="size=auto" title="<?= strftime(_('Neuer Tagestermin am %x'), $calendar->getStart()) ?>" href="<?= $controller->url_for('calendar/single/edit/' . $calendar->getRangeId(), ['atime' => $calendar->getStart(), 'isdayevent' => '1']) ?>">+</a>
<? endif; ?>
</td>
<? else : ?>
<td class="calendar-day-edit <?= $class_cell ?>" <?= (($em['max_cols'] > 0) ? ' colspan="' . ($em['max_cols'] + 1) . '"' : '') ?>>
<? if ($calendar->havePermission(Calendar::PERMISSION_WRITABLE)) : ?>
<a data-dialog="size=auto" title="<?= strftime(_('Neuer Tagestermin am %x'), $calendar->getStart()) ?>" href="<?= $controller->url_for('calendar/single/edit/' . $calendar->getRangeId(), ['atime' => $calendar->getStart(), 'isdayevent' => '1']) ?>">+</a>
<? endif; ?>
</td>
<? endif; ?>
|