<?php use_helper('I18N', 'Date') ?>
<?php if (!$sf_request->isXmlHttpRequest()): ?>
<?php include_partial('page/assets') ?>

<span class="lui__h1"><?php echo __('Страницы', array(), 'messages') ?></span><sup
    class="lui__list_count">&nbsp;<?php echo ($sf_request->getParameter('q') ? 'найдено:&nbsp;' : '');?><?php echo isset($pager) ? $pager->getNbResults() : ''; ?>&nbsp;</sup>

<?php include_partial('page/flashes') ?>

<span class="br15"></span>
<div class="batch_form__class">
    <?php endif; ?>

    <?php if (isset($pager)): ?>

    <form id="batch_form" action="<?php echo url_for('page_collection', array('action' => 'batch')) ?>" method="post">


        <div id="lui_scroller" class="lui_scroller">
            <div class="lui__scroller_wrapper"><?php include_partial('page/list', array('pager' => $pager, 'sort' => $sort, 'helper' => $helper)) ?></div>
        </div>


        <input type="hidden" name="batch_action" id="batch_action_id"/>
        <?php $form = new BaseForm(); if ($form->isCSRFProtected()): ?>
        <input type="hidden" name="<?php echo $form->getCSRFFieldName() ?>" value="<?php echo $form->getCSRFToken() ?>"/>
        <?php endif; ?>

    </form>

    <?php endif; ?>

    <?php if (!$sf_request->isXmlHttpRequest()): ?>
</div>



<?php endif; ?>
<?php if (isset($replace_content) && $replace_content !== false): ?>
    <?php echo htmlspecialchars_decode($replace_content); ?>
<?php endif; ?>