2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-07-16 10:08:23 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Contributor.podcast_contributors') ?>
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Contributor.podcast_contributors') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('headerRight') ?>
|
2021-09-21 15:51:04 +00:00
|
|
|
<Button uri="<?= route_to('contributor-add', $podcast->id) ?>" variant="primary" iconLeft="add"><?= lang('Contributor.add') ?></Button>
|
2020-07-16 10:08:23 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2020-10-02 15:38:16 +00:00
|
|
|
<?= data_table(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'header' => lang('Contributor.list.username'),
|
|
|
|
'cell' => function ($contributor) {
|
2022-03-04 14:33:48 +00:00
|
|
|
return esc($contributor->username);
|
2020-10-02 15:38:16 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'header' => lang('Contributor.list.role'),
|
2021-08-11 15:47:23 +00:00
|
|
|
'cell' => function ($contributor): string {
|
2020-10-02 15:38:16 +00:00
|
|
|
return lang('Contributor.roles.' . $contributor->podcast_role);
|
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'header' => lang('Common.actions'),
|
|
|
|
'cell' => function ($contributor, $podcast) {
|
2021-09-21 15:51:04 +00:00
|
|
|
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>';
|
2020-10-02 15:38:16 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
$podcast->contributors,
|
2021-08-09 10:28:16 +00:00
|
|
|
'',
|
2021-05-06 14:00:48 +00:00
|
|
|
$podcast,
|
2020-10-02 15:38:16 +00:00
|
|
|
) ?>
|
2020-07-16 10:08:23 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|