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