mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-22 16:51:20 +00:00

- update CI4 to v4.1.9's stable production package - update php and js dependencies to latest
46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Contributor.podcast_contributors') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Contributor.podcast_contributors') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('headerRight') ?>
|
|
<Button uri="<?= route_to('contributor-add', $podcast->id) ?>" variant="primary" iconLeft="add"><?= lang('Contributor.add') ?></Button>
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<?= data_table(
|
|
[
|
|
[
|
|
'header' => lang('Contributor.list.username'),
|
|
'cell' => function ($contributor) {
|
|
return esc($contributor->username);
|
|
},
|
|
],
|
|
[
|
|
'header' => lang('Contributor.list.role'),
|
|
'cell' => function ($contributor): string {
|
|
return lang('Contributor.roles.' . $contributor->podcast_role);
|
|
},
|
|
],
|
|
[
|
|
'header' => lang('Common.actions'),
|
|
'cell' => function ($contributor, $podcast) {
|
|
return '<Button uri="' . route_to('contributor-edit', $podcast->id, $contributor->id) . '" variant="secondary" iconLeft="edit" size="small">' . lang('Contributor.edit') . '</Button>' .
|
|
'<Button uri="' . route_to('contributor-remove', $podcast->id, $contributor->id) . '" variant="danger" iconLeft="delete-bin" size="small">' . lang('Contributor.remove') . '</Button>';
|
|
},
|
|
],
|
|
],
|
|
$podcast->contributors,
|
|
'',
|
|
$podcast,
|
|
) ?>
|
|
|
|
<?= $this->endSection() ?>
|