{extends "[shared]list.tpl"}

{block "content"}
   <form method="post" action="launch.php?s=list.php&type={$view->getListName()}&status[]=0">
      {$smarty.block.parent}
   </form>
{/block}

{block bottomPagination}
   <div class="row">
      <div class="col-md-6">
         {paginationList pager=$pager}
      </div>
      {if $smarty.get.status && count($smarty.get.status) == 1 && in_array(0, $smarty.get.status)}
         <div class="col-md-2 col-md-offset-4">
            <input type="submit" name="Submit" class="btn btn-primary btn-block" value="Schválit vše" />
         </div>
      {/if}
   </div>
{/block}

{block js append}
   <script src="./static/js/comments.list.js"></script>
{/block}

<script>
   {block onready append}
   CommentsList.init('{$view->getListName()}', {if ($smarty.get.status && count($smarty.get.status) == 1 && in_array(0, $smarty.get.status))}1{else}0{/if})
   {/block}
</script>
