{if $actionInfo != ""}
  <div class="note">
    {$actionInfo}
  </div>
{/if}
<table>
<tr>
<td>
<h2>{$specialization.name}</h2>
<b>garant:</b> 
{if $garant}
<a href="index.php?site=teacher&amp;action=info&amp;id={$garant.id}">{$garant.namePrefix} {$garant.name}
 {$garant.surname} {$garant.nameSuffix}</a>
{else}
  Predmet nemá prideleného garanta.
{/if}
<br />
<br />
<a href="index.php?site=spec&amp;action=edit&amp;id={$specialization.id}">[editovať]</a> |
<a href="index.php?site=spec&amp;action=delete&amp;id={$specialization.id}">[vymazať]</a><br />
<br />
{section name=year loop=8 start=0 step=1}
  {if $studentCount[$smarty.section.year.index] > 0}
    <b>Zoznam študentov v {$smarty.section.year.index+1}.roku štúdia:</b><br/>
    <br />
    {foreach from=$students[$smarty.section.year.index] item=student}
      <a href="index.php?site=student&amp;action=info&amp;id={$student.id}">{$student.namePrefix}
       {$student.name} {$student.surname} {$student.nameSuffix}</a><br />
    {/foreach}
    <br />
  {/if}
{/section}
</td>
</tr>
</table>
