47 lines
2.2 KiB
Smarty
Raw Normal View History

2016-12-12 22:20:21 +01:00
<h2 id="idContentHeader" class="clContentHeader">
&Uumlbersicht: #context['category']#
</h2>
<div id="idContentArea" class="clContentArea">
<table id="idList">
<tr>
@if context['content'] != 'None'@
@for heading in context['headings']@
@if context['headings'][heading] != 'id' && context['headings'][heading] != 'Status' && context['headings'][heading] != 'ZeitraumVon' &&context['headings'][heading] != 'ZeitraumBis' && context['headings'][heading] != 'Student' && context['headings'][heading] != 'Lehrender'@
<th>#context['headings'][heading]#</th>
@endif@
@endfor@
@else@
<td>Bisher kein Inhalt</td>
@endif@
</tr>
@if context['content'] != 'None'@
@for entries in context['content']@
<tr id=#entries#>
@if context['category'] == 'Angebote'@
@if context['content'][entries]['Status'] == 'Angebot'@
@for entry in context['content'][entries]@
@if entry!='id' && entry!='Status' && entry!='ZeitraumVon' && entry!='ZeitraumBis' && entry!='Student' && entry!='Lehrender'@
<td id=#entries#>#context['content'][entries][entry]#</td>
@endif@
@endfor@
@endif@
@else@
@for entry in context['content'][entries]@
@if entry != 'id'@
<td id=#entries#>#context['content'][entries][entry]#</td>
@endif@
@endfor@
@endif@
</tr id=#entries#>
@endfor@
@endif@
</table>
<div id="idButtonArea" class="clButtonArea">
<a class="clButton" data-action="index">Startseite</a>
<a class="clButton" data-action="New#context['category']#">Neu</a>
<a class="clButton" data-action="Modify#context['category']#">Bearbeiten</a>
<a class="clButton" data-action="Delete#context['category']#">Loeschen</a>
</div>