2021-09-02 18:34:25 +02:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-08-18 18:31:28 +02:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
2020-10-02 17:38:16 +02:00
|
|
|
<?= lang('Page.all_pages') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
2020-08-18 18:31:28 +02:00
|
|
|
<?= lang('Page.all_pages') ?> (<?= count($pages) ?>)
|
2020-10-02 17:38:16 +02:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('headerRight') ?>
|
2021-09-21 17:51:04 +02:00
|
|
|
<Button uri="<?= route_to('page-create') ?>" variant="primary" iconLeft="add"><?= lang('Page.create') ?></Button>
|
2020-08-18 18:31:28 +02:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2020-10-02 17:38:16 +02:00
|
|
|
<?= data_table(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'header' => lang('Page.page'),
|
2023-06-12 16:47:38 +02:00
|
|
|
'cell' => function ($page) {
|
2020-10-02 17:38:16 +02:00
|
|
|
return '<div class="flex flex-col">' .
|
2022-03-04 15:33:48 +01:00
|
|
|
esc($page->title) .
|
2021-11-05 15:36:34 +01:00
|
|
|
'<span class="text-sm text-skin-muted">/' .
|
2022-03-04 15:33:48 +01:00
|
|
|
esc($page->slug) .
|
2020-10-02 17:38:16 +02:00
|
|
|
'</span></div>';
|
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'header' => lang('Common.actions'),
|
2023-06-12 16:47:38 +02:00
|
|
|
'cell' => function ($page) {
|
2022-03-04 15:33:48 +01:00
|
|
|
return '<Button uri="' . route_to('page', esc($page->slug)) . '" variant="secondary" size="small">' . lang('Page.go_to_page') . '</Button>' .
|
2021-09-20 17:45:38 +02:00
|
|
|
'<Button uri="' . route_to('page-edit', $page->id) . '" variant="info" size="small">' . lang('Page.edit') . '</Button>' .
|
|
|
|
'<Button uri="' . route_to('page-delete', $page->id) . '" variant="danger" size="small">' . lang('Page.delete') . '</Button>';
|
2020-10-02 17:38:16 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2021-05-06 16:00:48 +02:00
|
|
|
$pages,
|
2020-10-02 17:38:16 +02:00
|
|
|
) ?>
|
2020-08-18 18:31:28 +02:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|