aboutsummaryrefslogtreecommitdiff
path: root/app/views/calendar/contentbox/display.php
blob: 39927530cdabb247883e16be40b8d119fd07f5fd (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
<? if ($admin || $termine): ?>
<article class="studip">
    <header>
        <h1>
            <?= Icon::create('schedule', 'info')->asImg() ?>
            <?= htmlReady($title) ?>
        </h1>
        <nav>
    <? if ($admin): ?>
        <? if ($isProfile): ?>
        <a href="<?= URLHelper::getLink('dispatch.php/calendar/single/edit/' . $termin->id, ['source_page' => 'dispatch.php/profile']) ?>">
            <?= Icon::create('add', 'clickable')->asImg(['class' => 'text-bottom']) ?>
        </a>
        <? else: ?>
        <a href="<?= URLHelper::getLink("dispatch.php/course/timesrooms", ['cid' => $range_id]) ?>">
            <?= Icon::create('admin', 'clickable')->asImg(['class' => 'text-bottom']) ?>
        </a>
        <? endif; ?>
    <? endif; ?>
        </nav>
    </header>
  <? if($termine): ?>

    <? foreach ($termine as $termin): ?>
        <?= $this->render_partial('calendar/contentbox/_termin.php', ['termin' => $termin]); ?>
    <? endforeach; ?>
<? else: ?>
    <section>
    <? if($isProfile): ?>
        <?= _('Es sind keine aktuellen Termine vorhanden. Um neue Termine zu erstellen, klicken Sie rechts auf das Plus.') ?>
    <? else: ?>
        <?= _('Es sind keine aktuellen Termine vorhanden. Um neue Termine zu erstellen, klicken Sie rechts auf die Zahnräder.') ?>
    <? endif; ?>
    </section>
  <? endif; ?>
</article>
<? endif; ?>