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

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

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

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

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

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

<?= $this->include("Templates/form") ?>

</form>

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