{* Latte template *}

{block content}
<h1>Editace srazu</h1>
<div class="addzprform">
{control editSrazForm}
</div>
{if $galerie != null }
    <div class="zpravylist">
{foreach $galerie as $gal}
    <div class="zpritem"> <a class="zprava" n:href="Srazy:galerie $gal->id">{$gal->nazev}</a><a class="zpravydel" n:href="deleteGalerie! $gal->id, $sraz->id">smazat</a> </div>
    {/foreach}
    </div>
{/if}

<div class="addgal">
    <b>Přidat galerii:</b>
{control addGalerieForm}
</div>

{/block}

{block breadcrumb}
&nbsp;&nbsp; > &nbsp;&nbsp; Informace o sekci  &nbsp;&nbsp; > &nbsp;&nbsp; <a n:href="Srazy:list">Srazy a akce</a> &nbsp;&nbsp; > &nbsp;&nbsp; Sraz {$sraz->rok}
{/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',
        plugins: [
            "advlist autolink lists link image charmap print preview anchor",
            "searchreplace visualblocks code fullscreen",
            "insertdatetime media table contextmenu paste jbimages filemanager "
        ], height: 400,
        toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link jbimages | filemanager ",
        entities: "160,nbsp",
        entity_encoding: "named",relative_urls: false,
       
        
});



</script>
{/block}