-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventList.latte
53 lines (52 loc) · 1.53 KB
/
EventList.latte
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<style type="text/css">
table.eventlist td.action {
width: 13em;
}
</style>
{snippet}
{if isset($events) and count($events) > 0}
<table class="table table-striped table-bordered table-condensed eventlist">
<thead>
<tr>
<th class="date_start"><i class="icon-time"></i> Kdy</th>
<th class="place"><i class="icon-home"></i> Kde</th>
<th class="description"><i class="icon-music"></i> Co</th>
<th class="action"><i class="icon-cog"></i></th>
</tr>
</thead>
<tbody>
{foreach $events as $event}
<tr n:class="$iterator->isOdd() ? odd : even, $event->hidden ? hiddenEvent">
<td class="date_start">
{* TODO: use czech locale and '%a %d.%m.%Y %H:%M' *}
{$event->date_start|date:'j.n.Y H:i'}
{ifset $event->date_end} – {$event->date_end|date:'j.n.Y H:i'}{/ifset}
</td>
<td class="place">{$event->place}</td>
<td class="description">{$event->description}</td>
<td class="action">
<a href="{plink Event:details $event->id}" class="btn" title="Detaily">
<i class="icon-search"></i>
</a>
{if $user->isLoggedIn()}
<a href="{plink Event:edit $event->id}" class="btn" title="Upravit">
<i class="icon-pencil"></i>
</a>
{/if}
<a href="{plink Playlist: eventId=>$event->id}" class="btn" title="Playlist">
<i class="icon-list"></i>
</a>
{if $event->attendance_active}
<a href="{plink Attendance:event $event->id}" class="btn" title="Účast">
<i class="icon-check"></i>
</a>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
{else}
<p>Žádné události.</p>
{/if}
{/snippet}