Commit 8ce8357a authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Template de pagination : abandon du module/Application/view/paginator.phtml et...

Template de pagination : abandon du module/Application/view/paginator.phtml et généralisation du module/Application/view/application/paginator.phtml
parent fb3b874e
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/view/application/fichier-these/deposes.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ use UnicaenApp\Form\Element\SearchAndSelect;
    </tbody>
</table>

<?php echo $paginationControl = $this->paginationControl($fichiers, 'sliding', 'paginator.phtml', ['route' => 'fichier/deposes']) ?>
<?php echo $paginationControl = $this->paginationControl($fichiers, 'sliding', 'application/paginator.phtml', ['route' => 'fichier/deposes']) ?>

<!-- for translation purpose -->
<?php
+1 −1
Changes for module/Application/view/application/rapport/rapport-recherche/index.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ $this->headTitle($this->translate($title));
        'displayValidation' => $displayValidation,
    ]) ?>

    <?php echo $this->paginationControl($paginator, 'sliding', 'partial/paginator.phtml', ['route' => $routeName . '/recherche/index']) ?>
    <?php echo $this->paginationControl($paginator, 'sliding', 'application/paginator.phtml', ['route' => $routeName . '/recherche/index']) ?>

    <?php if ($canDlZip): ?>
        <a class="btn btn-secondary" href="<?php echo $this->url($routeName . '/recherche/telecharger-zip', [], ['query' => $queryParams]) ?>"
+0 −85
Changes for module/Application/view/application/rapport/rapport-recherche/partial/paginator.phtml: 0 added lines, 85 removed lines.
Original line number Diff line number Diff line
<?php if ($this->pageCount): ?>
    <div>
        <ul class="pagination">
            <!-- First page link -->
            <?php if ($this->current !== $this->first): ?>
                <li class="page-item">
                    <?php $queryParams = array_merge($this->queryParams(), ['page' => $this->first]) ?>
                    <a class="page-link" title="Première page" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                        |<
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link" href="#">
                        |<
                    </a>
                </li>
            <?php endif; ?>

            <!-- Previous page link -->
            <?php if (isset($this->previous)): ?>
                <li class="page-item">
                    <?php $queryParams = array_merge($this->queryParams(), ['page' => $this->previous]) ?>
                    <a class="page-link" title="Page précédente" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                        <
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link" href="#">
                        <
                    </a>
                </li>
            <?php endif; ?>

            <!-- Numbered page links -->
            <?php foreach ($this->pagesInRange as $page): ?>
                <?php if ($page != $this->current): ?>
                    <li class="page-item">
                        <?php $queryParams = array_merge($this->queryParams(), ['page' => $page]) ?>
                        <a class="page-link" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                            <?php echo $page; ?>
                        </a>
                    </li>
                <?php else: ?>
                    <li class="page-item active">
                        <a class="page-link" href="#"><?php echo $page; ?></a>
                    </li>
                <?php endif; ?>
            <?php endforeach; ?>

            <!-- Next page link -->
            <?php if (isset($this->next)): ?>
                <li class="page-item">
                    <?php $queryParams = array_merge($this->queryParams(), ['page' => $this->next]) ?>
                    <a class="page-link" title="Page suivante" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                        >
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link" href="#">
                        >
                    </a>
                </li>
            <?php endif; ?>

            <!-- Last page link -->
            <?php if ($this->current !== $this->last): ?>
                <li class="page-item">
                    <?php $queryParams = array_merge($this->queryParams(), ['page' => $this->last]) ?>
                    <a class="page-link" title="Dernière page" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                        >|
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link" href="#">
                        >|
                    </a>
                </li>
            <?php endif; ?>
        </ul>
    </div>
<?php endif; ?>
 No newline at end of file
+1 −1
Changes for module/Application/view/application/these-recherche/index.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ $acteursFormatterCodirecteurs->asSeparated()
        </tbody>
    </table>

    <?php echo $paginationControl = $this->paginationControl($theses, 'sliding', 'partial/paginator.phtml', ['route' => 'these']) ?>
    <?php echo $paginationControl = $this->paginationControl($theses, 'sliding', 'application/paginator.phtml', ['route' => 'these']) ?>

    <?php if ($canExport): ?>
        <a class="btn btn-secondary" href="<?php echo $this->url('export/csv', [], ['query' => $queryParams]) ?>">
+0 −85
Changes for module/Application/view/application/these-recherche/partial/paginator.phtml: 0 added lines, 85 removed lines.
Original line number Diff line number Diff line
<?php if ($this->pageCount): ?>
    <div>
        <ul class="pagination">
            <!-- First page link -->
            <?php if ($this->current !== $this->first): ?>
                <li class="page-item">
                    <?php $queryParams = array_merge($this->queryParams(), ['page' => $this->first]) ?>
                    <a class="page-link" title="Première page" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                        |<
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link" href="#">
                        |<
                    </a>
                </li>
            <?php endif; ?>

            <!-- Previous page link -->
            <?php if (isset($this->previous)): ?>
                <li class="page-item">
                    <?php $queryParams = array_merge($this->queryParams(), ['page' => $this->previous]) ?>
                    <a class="page-link" title="Page précédente" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                        <
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link" href="#">
                        <
                    </a>
                </li>
            <?php endif; ?>

            <!-- Numbered page links -->
            <?php foreach ($this->pagesInRange as $page): ?>
                <?php if ($page != $this->current): ?>
                    <li class="page-item">
                        <?php $queryParams = array_merge($this->queryParams(), ['page' => $page]) ?>
                        <a class="page-link" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                            <?php echo $page; ?>
                        </a>
                    </li>
                <?php else: ?>
                    <li class="page-item active">
                        <a class="page-link" href="#"><?php echo $page; ?></a>
                    </li>
                <?php endif; ?>
            <?php endforeach; ?>

            <!-- Next page link -->
            <?php if (isset($this->next)): ?>
                <li class="page-item">
                    <?php $queryParams = array_merge($this->queryParams(), ['page' => $this->next]) ?>
                    <a class="page-link" title="Page suivante" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                        >
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link" href="#">
                        >
                    </a>
                </li>
            <?php endif; ?>

            <!-- Last page link -->
            <?php if ($this->current !== $this->last): ?>
                <li class="page-item">
                    <?php $queryParams = array_merge($this->queryParams(), ['page' => $this->last]) ?>
                    <a class="page-link" title="Dernière page" href="<?php echo $this->url($this->route, [], ['query' => $queryParams], true) ?>">
                        >|
                    </a>
                </li>
            <?php else: ?>
                <li class="page-item disabled">
                    <a class="page-link" href="#">
                        >|
                    </a>
                </li>
            <?php endif; ?>
        </ul>
    </div>
<?php endif; ?>
 No newline at end of file
Loading