<?= $this->extend("layouts/default") ?>

<?= $this->section("title") ?>Delete Template<?= $this->endSection() ?>

<?= $this->section("content") ?>

<?= view(
    "layouts/bcr-nav",
    [
        "title" => "Delete Template",
        "controller" => "Templates",
        "links" => [
            "Back" =>  ["url" => base_url("templates/$template->TemplateID"), "auth_check" => false],
            "Templates' List" =>  ["url" => base_url("templates"), "auth_check" => false]
        ]
    ]
) ?>

<h1>Delete Template</h1>
<h2><?= $template->TemplateName ?></h2>
<p>Are you sure?</p>

<?= form_open("templates/".$template->TemplateID) ?>

<input type="hidden" name="_method" value="DELETE">

<button style="background-color: red;">Yes</button>

<a class="button" href="<?= site_url('/templates') ?>" default>No</a>

</form>

<?= $this->endSection() ?>

