2023-11-16 16:24:29 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Podcast.all_podcasts') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
2023-11-17 17:26:37 +00:00
|
|
|
<?= lang('Podcast.monetization_other') ?>
|
2023-11-16 16:24:29 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
|
|
|
<form id="podcast-edit-form" action="<?= route_to('podcast-monetization-edit', $podcast->id) ?>" method="POST" class="flex flex-col w-full max-w-xl gap-y-6">
|
|
|
|
<?= csrf_field() ?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Section
|
2023-11-16 16:24:29 +00:00
|
|
|
title="<?= lang('Podcast.form.monetization_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Podcast.form.monetization_section_subtitle') ?>" >
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2023-11-16 16:24:29 +00:00
|
|
|
name="payment_pointer"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Podcast.form.payment_pointer')) ?>"
|
2023-11-16 16:24:29 +00:00
|
|
|
value="<?= esc($podcast->payment_pointer) ?>"
|
2024-01-24 16:48:23 +00:00
|
|
|
hint="<?= esc(lang('Podcast.form.payment_pointer_hint')) ?>" />
|
2023-11-16 16:24:29 +00:00
|
|
|
|
|
|
|
<fieldset class="flex flex-col items-start p-4 rounded bg-base">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Heading tagName="legend" class="float-left" size="small"><?= lang('Podcast.form.partnership') ?></x-Heading>
|
2023-11-16 16:24:29 +00:00
|
|
|
<div class="flex flex-col w-full clear-left gap-x-2 gap-y-4 md:flex-row">
|
|
|
|
<div class="flex flex-col flex-shrink w-32">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label for="partner_id" hint="<?= esc(lang('Podcast.form.partner_id_hint')) ?>" isOptional="true"><?= lang('Podcast.form.partner_id') ?></x-Forms.Label>
|
|
|
|
<x-Forms.Input name="partner_id" value="<?= esc($podcast->partner_id) ?>" />
|
2023-11-16 16:24:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col flex-1">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label for="partner_link_url" hint="<?= esc(lang('Podcast.form.partner_link_url_hint')) ?>" isOptional="true"><?= lang('Podcast.form.partner_link_url') ?></x-Forms.Label>
|
|
|
|
<x-Forms.Input name="partner_link_url" value="<?= esc($podcast->partner_link_url) ?>" />
|
2023-11-16 16:24:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex flex-col w-full mt-2">
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Label for="partner_image_url" hint="<?= esc(lang('Podcast.form.partner_image_url_hint')) ?>" isOptional="true"><?= lang('Podcast.form.partner_image_url') ?></x-Forms.Label>
|
|
|
|
<x-Forms.Input name="partner_image_url" value="<?= esc($podcast->partner_image_url) ?>" />
|
2023-11-16 16:24:29 +00:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
2024-05-09 17:55:41 +00:00
|
|
|
</x-Forms.Section>
|
2023-11-16 16:24:29 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" class="self-end"><?= lang('Common.forms.save') ?></x-Button>
|
2023-11-16 16:24:29 +00:00
|
|
|
|
|
|
|
</form>
|
|
|
|
<?= $this->endSection() ?>
|