2022-11-27 21:21:19 +01:00
|
|
|
<?php $this->layout('panel') ?>
|
2023-05-09 18:55:50 +02:00
|
|
|
|
|
|
|
<div class="header">
|
|
|
|
<div class="header-title"><?= $this->translate('panel.pages.pages') ?> <span class="badge"><?= $formwork->site()->descendants()->count() ?></span></div>
|
|
|
|
<div>
|
2019-03-08 00:04:25 +01:00
|
|
|
<?php
|
2022-11-27 21:21:19 +01:00
|
|
|
if ($panel->user()->permissions()->has('pages.create')):
|
2019-03-08 00:04:25 +01: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>
|
2019-03-08 00:04:25 +01:00
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
?>
|
2023-05-09 18:55:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="component">
|
|
|
|
<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 ?>
|
2018-06-16 16:41:58 +02:00
|
|
|
</div>
|