{* Latte template *}

{block content}
<h1>Novinky</h1>
<div class="newsrok">
{control vybratRokForm}
</div>

<table class="newstable">
{foreach $novinky as $novinka}
    <tr>    
        <th>{$novinka['datum']|date:'%d.%m.%Y'}</th> <td class="newstext">{$novinka->text|noescape} </td>
        <td class="newslink">
            <a n:href="Novinky:edit $novinka->id">Upravit</a> </td> <td class="newslink">  <a n:href="deleteNovinka! $novinka->id">Smazat</a>
        </td> 
    </tr>   
{/foreach}

</table>
<a class= "addnew" n:href="Novinky:add">Přidat novinku</a>

{/block}
{block breadcrumb}
 &nbsp;&nbsp; > &nbsp;&nbsp; Novinky
{/block}