{* Latte template *}


{block content}

{foreach $oznameni as $o}
    <div class="oznameni">
        <b>{$o->nazev|noescape}</b> <br><br>
        <p>{$o->text|noescape}</p> 
        <a n:href="Homepage:edit $o->id">Upravit</a> | <a n:href="deleteOznameni! $o->id">Smazat</a>
    </div>
    
    {/foreach}
    <div class="formcara"></div>
    <h6>Přidat nové oznámení:</h6>
{control addOznameniForm}

{/block}

{block breadcrumb}

{/block}

{block scripts}
<script type="text/javascript" src="{$basePath}/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
    tinymce.init({
        selector: "textarea[name=text]",  
       
        forced_root_block : "", automatic_uploads: 'true',
  
  menubar: "false"
  ,

link_list: [
    { title: 'Stranky', value: '/bpzk2/www/images/Stranky' }
  ],
  plugins: [
           
            "searchreplace visualblocks code fullscreen",
            "insertdatetime media table  paste link filemanager"
        ],
        toolbar: " undo redo |  bold italic | alignleft aligncenter alignright alignjustify | link | filemanager ",
        entities: "160,nbsp",
        entity_encoding: "named",relative_urls: false,
       
        
});
//jbimages link


</script>
{/block}