mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-12 17:25:45 +00:00

- enhance plugin card ui - refactor components to be more consistent - invert toggler label for better UX - edit view components regex
30 lines
1.0 KiB
PHP
30 lines
1.0 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('title') ?>
|
|
<?= lang('Subscription.delete') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
<?= lang('Subscription.delete') ?>
|
|
<?= $this->endSection() ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form action="<?= route_to('subscription-delete', $podcast->id, $subscription->id) ?>" method="POST" class="flex flex-col w-full max-w-xl mx-auto">
|
|
<?= csrf_field() ?>
|
|
|
|
<x-Alert variant="danger" class="font-semibold"><?= lang('Subscription.delete_form.disclaimer', [
|
|
'subscriber' => $subscription->email,
|
|
]) ?></x-Alert>
|
|
|
|
<x-Forms.Checkbox class="mt-2" name="understand" isRequired="true" isChecked="false"><?= lang('Subscription.delete_form.understand') ?></x-Forms.Checkbox>
|
|
|
|
<div class="flex items-center self-end mt-4 gap-x-2">
|
|
<x-Button uri="<?= route_to('subscription-list', $podcast->id) ?>"><?= lang('Common.cancel') ?></x-Button>
|
|
<x-Button type="submit" variant="danger"><?= lang('Subscription.delete_form.submit') ?></x-Button>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<?= $this->endSection() ?>
|