mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-18 15:33:21 +02:00
- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
63 lines
1.8 KiB
PHP
63 lines
1.8 KiB
PHP
<?= $this->extend('admin/_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Page.all_pages') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Page.all_pages') ?> (<?= count($pages) ?>)
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('headerRight') ?>
|
|
<?= button(lang('Page.create'), route_to('page-create'), [
|
|
'variant' => 'accent',
|
|
'iconLeft' => 'add',
|
|
]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<?= data_table(
|
|
[
|
|
[
|
|
'header' => lang('Page.page'),
|
|
'cell' => function ($page) {
|
|
return '<div class="flex flex-col">' .
|
|
$page->title .
|
|
'<span class="text-sm text-gray-600">/' .
|
|
$page->slug .
|
|
'</span></div>';
|
|
},
|
|
],
|
|
[
|
|
'header' => lang('Common.actions'),
|
|
'cell' => function ($page) {
|
|
return button(
|
|
lang('Page.go_to_page'),
|
|
route_to('page', $page->slug),
|
|
[
|
|
'variant' => 'secondary',
|
|
'size' => 'small',
|
|
],
|
|
['class' => 'mr-2'],
|
|
) .
|
|
button(
|
|
lang('Page.edit'),
|
|
route_to('page-edit', $page->id),
|
|
['variant' => 'info', 'size' => 'small'],
|
|
['class' => 'mr-2'],
|
|
) .
|
|
button(
|
|
lang('Page.delete'),
|
|
route_to('page-delete', $page->id),
|
|
['variant' => 'danger', 'size' => 'small'],
|
|
);
|
|
},
|
|
],
|
|
],
|
|
$pages,
|
|
) ?>
|
|
|
|
<?= $this->endSection() ?>
|