mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-13 01:35:47 +00: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
69 lines
2.0 KiB
PHP
69 lines
2.0 KiB
PHP
<?= $this->extend('admin/_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Contributor.podcast_contributors') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Contributor.podcast_contributors') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('headerRight') ?>
|
|
<?= button(lang('Contributor.add'), route_to('contributor-add', $podcast->id), [
|
|
'variant' => 'primary',
|
|
'iconLeft' => 'add',
|
|
]) ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<?= data_table(
|
|
[
|
|
[
|
|
'header' => lang('Contributor.list.username'),
|
|
'cell' => function ($contributor) {
|
|
return $contributor->username;
|
|
},
|
|
],
|
|
[
|
|
'header' => lang('Contributor.list.role'),
|
|
'cell' => function ($contributor) {
|
|
return lang('Contributor.roles.' . $contributor->podcast_role);
|
|
},
|
|
],
|
|
[
|
|
'header' => lang('Common.actions'),
|
|
'cell' => function ($contributor, $podcast) {
|
|
return button(
|
|
lang('Contributor.edit'),
|
|
route_to(
|
|
'contributor-edit',
|
|
$podcast->id,
|
|
$contributor->id
|
|
),
|
|
[
|
|
'variant' => 'info',
|
|
'size' => 'small',
|
|
],
|
|
['class' => 'mr-2']
|
|
) .
|
|
button(
|
|
lang('Contributor.remove'),
|
|
route_to(
|
|
'contributor-remove',
|
|
$podcast->id,
|
|
$contributor->id
|
|
),
|
|
['variant' => 'danger', 'size' => 'small'],
|
|
['class' => 'mr-2']
|
|
);
|
|
},
|
|
],
|
|
],
|
|
$podcast->contributors,
|
|
$podcast
|
|
) ?>
|
|
|
|
<?= $this->endSection() ?>
|