29 lines
1.3 KiB
PHP
Raw Normal View History

2022-11-27 21:21:19 +01:00
<?php $this->layout('panel') ?>
2023-05-09 18:55:50 +02:00
<div class="header">
2023-07-29 22:39:28 +02:00
<div class="header-title"><?= $this->translate('panel.pages.pages') ?> <span class="badge"><?= $app->site()->descendants()->count() ?></span></div>
2023-05-09 18:55:50 +02:00
<div>
<?php
2022-11-27 21:21:19 +01:00
if ($panel->user()->permissions()->has('pages.create')):
2023-07-29 22:39:28 +02:00
?>
2023-05-09 18:55:50 +02:00
<button type="button" class="button-accent" data-modal="newPageModal"><?= $this->icon('plus-circle') ?> <?= $this->translate('panel.pages.newPage') ?></button>
<?php
2023-07-29 22:39:28 +02:00
endif
?>
2023-05-09 18:55:50 +02:00
</div>
</div>
2023-08-06 13:33:50 +02:00
<section class="section">
2023-05-09 18:55:50 +02:00
<div class="flex flex-wrap">
<div class="flex-grow-1 mr-4">
<input class="page-search" type="search" placeholder="<?= $this->translate('panel.pages.pages.search') ?>">
</div>
<div class="whitespace-nowrap">
<button type="button" data-command="expand-all-pages"><?= $this->icon('chevron-down') ?> <?= $this->translate('panel.pages.pages.expandAll') ?></button>
<button type="button" data-command="collapse-all-pages"><?= $this->icon('chevron-up') ?> <?= $this->translate('panel.pages.pages.collapseAll') ?></button>
<button type="button" data-command="reorder-pages"><?= $this->icon('reorder-v') ?> <?= $this->translate('panel.pages.pages.reorder') ?></button>
</div>
</div>
2018-06-16 17:49:27 +02:00
<?= $pagesList ?>
2023-08-06 13:33:50 +02:00
</section>