<?php

/**
 * @var Mobicms\Render\Template\Template $this
 * @var array<string, string> $consent
 * @var string $form_action
 * @var string $back_url
 * @var string $csrf_token
 */

$this->layout('system::layout/default');
?>

<div class="alert alert-warning">
    <?= __('Are you sure you want to delete this consent?') ?>
    <div class="mt-2"><strong><?= $this->e($consent['title']) ?></strong>
        (<?= $this->e($consent['context']) ?>, <?= __('Version') ?>: <?= $this->e($consent['version']) ?>)
    </div>
</div>

<form method="post" action="<?= $this->e($form_action) ?>">
    <input type="hidden" name="csrf_token" value="<?= $csrf_token ?>">
    <button type="submit" class="btn btn-danger"><?= __('Delete') ?></button>
    <a href="<?= $this->e($back_url) ?>" class="btn btn-secondary"><?= __('Cancel') ?></a>
</form>
