You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1.6 KiB

{* $Id$ *}
{if $invalideid}
<div class="card bg-light"><div class="card-body">{tr}The calendarid parameter is invalid or contains an id that does not exist.{/tr}</div></div>
{else}
<div class="table-responsive">
<table class="table table-condensed table-bordered">
<tr><th colspan="2">{tr}Upcoming Events{/tr}</th></tr>
{foreach from=$events item=event}
<tr class="{cycle advance=false}">
<td>
{if $datetime eq 1}
{capture name="start"}{$event.start|tiki_short_datetime}{/capture}
{capture name="end"}{$event.end|tiki_short_datetime}{/capture}
{$smarty.capture.start}{if $smarty.capture.start ne $smarty.capture.end}<br>{$smarty.capture.end}{/if}
{else}
{capture name="start"}{$event.start|tiki_short_date}{/capture}
{capture name="end"}{$event.end|tiki_short_date}{/capture}
{$smarty.capture.start}{if $smarty.capture.start ne $smarty.capture.end}<br>{$smarty.capture.end}{/if}
{/if}
</td>
<td style=white-space:normal;">
<a class="linkmodule" href="tiki-calendar_edit_item.php?viewcalitemId={$event.calitemId}">{$event.name|escape}</a>
{if $desc}<br>{$event.parsed}{/if}
</td>
</tr><!-- {cycle} -->
{/foreach}
</table>
</div>
{*Pagination *}
{if !empty($events) && $usePagination ne 'n'}
{pagination_links cant=$cant step=$maxEvents offset=$offset}{/pagination_links}
{/if}
{/if}