<h2><a href="<?php 
        echo htmlSpecialChars($_control->link("ciselnikStruktura:add"));
        ?>
">Pridaj</a></h2>
<?php 
        $_ctrl = $_control->getComponent("gridCiselnikPodskupina");
        if ($_ctrl instanceof Nette\Application\UI\IRenderable) {
            $_ctrl->redrawControl(NULL, FALSE);
        }
        $_ctrl->render();
    }
}
//
// end of blocks
//
// template extending and snippets support
$_l->extends = empty($template->_extended) && isset($_control) && $_control instanceof Nette\Application\UI\Presenter ? $_control->findLayoutTemplateFile() : NULL;
$template->_extended = $_extended = TRUE;
if ($_l->extends) {
    ob_start();
} elseif (!empty($_control->snippetMode)) {
    return Nette\Latte\Macros\UIMacros::renderSnippets($_control, $_l, get_defined_vars());
}
//
// main template
//
if ($_l->extends) {
    ob_end_clean();
    return Nette\Latte\Macros\CoreMacros::includeTemplate($_l->extends, get_defined_vars(), $template)->render();
}
call_user_func(reset($_l->blocks['content']), $_l, get_defined_vars());
    function _lb9e6030d658_table($_l, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        echo $control->getTablePrototype()->startTag();
        ?>

    <thead>
        <tr class="head">
<?php 
        if ($operation) {
            ?>
            <th class="checker"<?php 
            if ($filters) {
                ?>
 rowspan="<?php 
                if ($filterRenderType == Grido\Components\Filters\Filter::RENDER_OUTER) {
                    ?>
1<?php 
                } else {
                    ?>
2<?php 
                }
                ?>
"<?php 
            }
            ?>
>
                <input type="checkbox" title="<?php 
            echo htmlSpecialChars($template->translate('Invert'));
            ?>
">
            </th>
<?php 
        }
        $iterations = 0;
        foreach ($columns as $column) {
            ?>
                <?php 
            echo $column->getHeaderPrototype()->startTag();
            ?>

<?php 
            if ($column->isSortable()) {
                if (!$column->getSort()) {
                    ?>
                        <a class="ajax" href="<?php 
                    echo htmlSpecialChars($_control->link("sort!", array(array($column->getName() => Grido\Components\Columns\Column::ORDER_ASC))));
                    ?>
"><?php 
                    echo Nette\Templating\Helpers::escapeHtml($template->translate($column->getLabel()), ENT_NOQUOTES);
                    ?>
</a>
<?php 
                }
                if ($column->getSort() == Grido\Components\Columns\Column::ORDER_ASC) {
                    ?>
                        <a class="sort ajax" href="<?php 
                    echo htmlSpecialChars($_control->link("sort!", array(array($column->getName() => Grido\Components\Columns\Column::ORDER_DESC))));
                    ?>
"><?php 
                    echo Nette\Templating\Helpers::escapeHtml($template->translate($column->getLabel()), ENT_NOQUOTES);
                    ?>
</a>
<?php 
                }
                if ($column->getSort() == Grido\Components\Columns\Column::ORDER_DESC) {
                    ?>
                        <a class="sort ajax" href="<?php 
                    echo htmlSpecialChars($_control->link("sort!", array(array($column->getName() => Grido\Components\Columns\Column::ORDER_ASC))));
                    ?>
"><?php 
                    echo Nette\Templating\Helpers::escapeHtml($template->translate($column->getLabel()), ENT_NOQUOTES);
                    ?>
</a>
<?php 
                }
                ?>
                        <span></span>
<?php 
            } else {
                ?>
                        <?php 
                echo Nette\Templating\Helpers::escapeHtml($template->translate($column->getLabel()), ENT_NOQUOTES);
                ?>

<?php 
            }
            ?>
                <?php 
            echo $column->getHeaderPrototype()->endTag();
            ?>

<?php 
            $iterations++;
        }
        if ($showActionsColumn) {
            ?>
            <th class="actions center">
                <?php 
            echo Nette\Templating\Helpers::escapeHtml($template->translate('Actions'), ENT_NOQUOTES);
            ?>

            </th>
<?php 
        }
        ?>
        </tr>
<?php 
        if ($filterRenderType == Grido\Components\Filters\Filter::RENDER_INNER && $filters) {
            ?>
        <tr class="filter inner">
<?php 
            $iterations = 0;
            foreach ($columns as $column) {
                if ($column->hasFilter()) {
                    ?>
                    <?php 
                    echo $control->getFilter($column->getName())->getWrapperPrototype()->startTag();
                    ?>

<?php 
                    $_formStack[] = $_form;
                    $formContainer = $_form = $_form["filters"];
                    $_input = is_object($column->getName()) ? $column->getName() : $_form[$column->getName()];
                    echo $_input->getControl();
                    $_form = array_pop($_formStack);
                    ?>
                    <?php 
                    echo $control->getFilter($column->getName())->getWrapperPrototype()->endTag();
                    ?>

<?php 
                } elseif ($column->headerPrototype->rowspan != 2) {
                    ?>
                    <th>&nbsp;</th>
<?php 
                }
                $iterations++;
            }
            ?>

<?php 
            if ($filters) {
                ?>
            <th class="buttons">
<?php 
                $_formStack[] = $_form;
                $formContainer = $_form = $_form["buttons"];
                ?>
                    <?php 
                echo $_form["search"]->getControl();
                ?>

                    <?php 
                echo $_form["reset"]->getControl();
                ?>

<?php 
                $_form = array_pop($_formStack);
                ?>
            </th>
<?php 
            }
            ?>
        </tr>
<?php 
        }
        ?>
    </thead>
    <tfoot>
        <tr>
            <td colspan="<?php 
        echo htmlSpecialChars($showActionsColumn ? $columnCount + 1 : $columnCount);
        ?>
">
<?php 
        call_user_func(reset($_l->blocks['operations']), $_l, get_defined_vars());
        call_user_func(reset($_l->blocks['paginator']), $_l, get_defined_vars());
        call_user_func(reset($_l->blocks['count']), $_l, get_defined_vars());
        ?>
            </td>
        </tr>
    </tfoot>
    <tbody>
<?php 
        $propertyAccessor = $control->getPropertyAccessor();
        $iterations = 0;
        foreach ($data as $row) {
            $checkbox = $operation ? $form[Grido\Components\Operation::ID][$propertyAccessor->getProperty($row, $control->getComponent(Grido\Components\Operation::ID)->getPrimaryKey())] : NULL;
            $tr = $control->getRowPrototype($row);
            $tr->class[] = $checkbox && $checkbox->getValue() ? 'selected' : NULL;
            ?>
            <?php 
            echo $tr->startTag();
            ?>

<?php 
            if ($checkbox) {
                ?>
                <td class="checker">
                    <?php 
                echo Nette\Templating\Helpers::escapeHtml($checkbox->getControl(), ENT_NOQUOTES);
                ?>

                </td>
<?php 
            }
            $iterations = 0;
            foreach ($columns as $column) {
                $td = $column->getCellPrototype($row);
                ?>
                    <?php 
                echo $td->startTag();
                ?>

<?php 
                if (is_string($column->getCustomRender())) {
                    Nette\Latte\Macros\CoreMacros::includeTemplate($column->getCustomRender(), array('control' => $control, 'presenter' => $control->getPresenter(), 'item' => $row) + $template->getParameters(), $_l->templates['ft7xhatkx0'])->render();
                } else {
                    ?>
                            <?php 
                    echo $column->render($row);
                    ?>

<?php 
                }
                ?>
                    <?php 
                echo $td->endTag();
                ?>

<?php 
                $iterations++;
            }
            if ($showActionsColumn) {
                ?>
                <td class="actions center">
<?php 
                $iterations = 0;
                foreach ($actions as $action) {
                    if (is_object($action)) {
                        $_ctrl = $action;
                    } else {
                        $_ctrl = $_control->getComponent($action);
                    }
                    if ($_ctrl instanceof Nette\Application\UI\IRenderable) {
                        $_ctrl->redrawControl(NULL, FALSE);
                    }
                    $_ctrl->render($row);
                    $iterations++;
                }
                if (!$actions) {
                    ?>
                        &nbsp;
<?php 
                }
                ?>
                </td>
<?php 
            }
            ?>
            <?php 
            echo $tr->endTag();
            ?>

<?php 
            $iterations++;
        }
        if (!$control->getCount()) {
            ?>
        <tr><td colspan="<?php 
            echo htmlSpecialChars($showActionsColumn ? $columnCount + 1 : $columnCount);
            ?>
" class="no-results"><?php 
            echo Nette\Templating\Helpers::escapeHtml($template->translate('No results.'), ENT_NOQUOTES);
            ?>
</td></tr>
<?php 
        }
        ?>
    </tbody>
<?php 
        echo $control->getTablePrototype()->endTag();
        ?>

<?php 
    }