mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-03 09:27:24 +02:00
- add podcast sidebar navigation - add podcast dashboard with latest episodes - add pagination to podcast episodes - add components helper to reuse ui components (button, data_table, etc.) - enhance podcast and episode forms by splitting them into form sections - add hint tooltips to podcast and episode forms - transform radio inputs as buttons for better ux - replace explicit field by parental_advisory - replace author field by publisher - add podcasts_categories table to set multiple categories - use choices.js to enhance multiselect fields - update Language files - update js dependencies to latest versions closes #31, #9
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' => 'primary',
|
|
'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() ?>
|