aboutsummaryrefslogtreecommitdiff
path: root/app/views/evaluation/_admin_list_vote.php
blob: a98335bbff437d3088a5505445877a5c50856777 (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
<? foreach ($votes as $vote): ?>
    <tr>
        <td>
            <?= htmlReady($vote->title) ?>
        </td>
        <td>
            <?= ObjectdisplayHelper::link($vote->author) ?>
        </td>
        <td>
            <?= strftime("%d.%m.%Y %T", $vote->startdate) ?>
        </td>
        <td>
            <? if ($vote->stopdate): ?>
                <?= strftime("%d.%m.%Y %T", $vote->stopdate) ?>
            <? else: ?>
                <? if ($vote->timespan): ?>
                    <?= strftime("%d.%m.%Y %T", $vote->startdate + $vote->timespan) ?>
                <? else: ?>
                    <?= _('Unbegrenzt') ?>
                <? endif; ?>
            <? endif; ?>
        </td>
        <td class="actions">
            <?= $this->render_partial("vote/_actions.php", ['vote' => $vote]) ?>
        </td>
    </tr>
<? endforeach; ?>