Skip to content
Snippets Groups Projects
delete.php 943 B
Newer Older
  • Learn to ignore specific revisions
  • <?= $this->extend('_layout') ?>
    
    <?= $this->section('title') ?>
    <?= lang('Episode.delete') ?>
    <?= $this->endSection() ?>
    
    <?= $this->section('pageTitle') ?>
    <?= lang('Episode.delete') ?>
    <?= $this->endSection() ?>
    
    <?= $this->section('content') ?>
    
    <form action="<?= route_to('episode-delete', $podcast->id, $episode->id) ?>" method="POST" class="flex flex-col max-w-xl mx-auto">
    <?= csrf_field() ?>
    
    <Alert variant="danger" glyph="alert" class="font-semibold"><?= lang('Episode.delete_form.disclaimer') ?></Alert>
    
    <Forms.Checkbox class="mt-2" name="understand" required="true" isChecked="false"><?= lang('Episode.delete_form.understand') ?></Forms.Checkbox>
    
    <div class="self-end mt-4">
        <Button uri="<?= route_to('episode-view', $podcast->id, $episode->id) ?>"><?= lang('Common.cancel') ?></Button>
        <Button type="submit" variant="danger"><?= lang('Episode.delete_form.submit') ?></Button>
    </div>
    
    </form>
    
    <?= $this->endSection() ?>